Versions in this module Expand all Collapse all v1 v1.0.0 Oct 10, 2026 Changes in this version + const MaxResponseBytes + func HTTPClient(base *http.Client, timeoutSec int, blockPrivate bool) *http.Client + func SafeURL(raw string) string + func SignRequest(req *http.Request, body []byte, secret string) + func ValidateURL(ctx context.Context, raw string, blockPrivate bool) error + type Hook struct + Active bool + CreatedAt time.Time + ID string + LastRun time.Time + LastSuccess bool + Name string + RetryCount int + Timeout int + Type HookType + URL string + type HookManager interface + DeleteHook func(ctx context.Context, hookID string) error + ExecuteHooks func(ctx context.Context, hooks []*Hook, hookType HookType, transactionID string, ...) error + ExecutePostHooks func(ctx context.Context, transactionID string, data interface{}) error + ExecutePreHooks func(ctx context.Context, transactionID string, data interface{}) error + GetHook func(ctx context.Context, hookID string) (*Hook, error) + ListHooks func(ctx context.Context, hookType HookType) ([]*Hook, error) + ProcessHookTask func(ctx context.Context, task *asynq.Task) error + RegisterHook func(ctx context.Context, hook *Hook) error + UpdateHook func(ctx context.Context, hookID string, hook *Hook) error + func NewHookManager(redisClient redis.UniversalClient, queue *asynq.Client) HookManager + type HookPayload struct + Data json.RawMessage + HookType HookType + Timestamp time.Time + TransactionID string + type HookResponse struct + Data interface{} + Message string + Success bool + type HookTaskPayload struct + Data interface{} + Hook *Hook + Payload HookPayload + Transaction *model.Transaction + TransactionID string + type HookType string + const PostTransaction + const PreTransaction