MCPcopy Create free account
hub / github.com/compozy/agh / HookEvents

Method HookEvents

internal/cli/client.go:3731–3739  ·  view source on GitHub ↗
(ctx context.Context, query HookEventsQuery)

Source from the content-addressed store, hash-verified

3729}
3730
3731func (c *unixSocketClient) HookEvents(ctx context.Context, query HookEventsQuery) ([]HookEventRecord, error) {
3732 var response struct {
3733 Events []HookEventRecord `json:"events"`
3734 }
3735 if err := c.doJSON(ctx, http.MethodGet, "/api/hooks/events", hookEventsValues(query), nil, &response); err != nil {
3736 return nil, err
3737 }
3738 return response.Events, nil
3739}
3740
3741func (c *unixSocketClient) ListLogs(ctx context.Context, query LogsListQuery) ([]LogEventRecord, error) {
3742 var response struct {

Callers 1

Calls 2

doJSONMethod · 0.95
hookEventsValuesFunction · 0.85

Tested by 1