Versions in this module Expand all Collapse all v1 v1.4.0 Aug 15, 2026 Changes in this version + const DefaultPreviousLimit + const DefaultTimeout + const EventAfterChange + const EventAfterDelete + const EventBeforeChange + const EventBeforeDelete + const HookDepthHeader + const HooksRoutePrefix + const MaxBodyBytes + const MaxHookDepth + const PreviousPathPrefix + func Middleware(opts Options) func(http.Handler) http.Handler + func ViewsFromManifest(hooks map[string]proxy.TableHooks) map[string]TableHooksView + type Callback struct + func NewCallback(restBase func(*http.Request) string, schemaFor func(*http.Request) string, ...) (*Callback, error) + func (c *Callback) Handler() http.Handler + func (c *Callback) Path(op Operation, table, filter string) string + type Claims struct + Email string + Role string + Sub string + type ClaimsFunc func(*http.Request) *Claims + func ClaimsFromBearer(jwtSecret string) ClaimsFunc + type Dispatcher struct + func NewDispatcher(client Doer, secret string) *Dispatcher + func (d *Dispatcher) Call(ctx context.Context, url string, event string, cfg HookConfigView, ...) Outcome + type Doer interface + Do func(req *http.Request) (*http.Response, error) + type HookConfigEntry struct + Function string + OnUnavailable string + TimeoutMs int + type HookConfigView struct + OnUnavailable string + TimeoutMs int + func (h HookConfigView) RejectsWhenUnavailable(event string) bool + func (h HookConfigView) Timeout() time.Duration + type HooksFunc func(*http.Request) map[string]TableHooksView + type Operation string + const OpDelete + const OpInsert + const OpUpdate + type Options struct + Callback *Callback + Claims ClaimsFunc + Dispatcher *Dispatcher + Hooks HooksFunc + MaxBodyBytes int64 + RequestID func(*http.Request) string + ResolveURL UpstreamResolver + type Outcome struct + Body []byte + Kind OutcomeKind + Reason string + Status int + type OutcomeKind int + const OutcomeProceed + const OutcomeReject + const OutcomeReplace + const OutcomeUnavailable + type TableHooksView map[string]HookConfigEntry + type Target struct + After *HookConfigEntry + AfterEvent string + Before *HookConfigEntry + BeforeEvent string + Operation Operation + Table string + func Classify(req *http.Request, hooks map[string]proxy.TableHooks) Target + func (t Target) HasWork() bool + type UpstreamResolver func(req *http.Request, function string) (string, error)