Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct {
// EventType is a free-form label identifying what this call represents,
// e.g. "trainer_session_feedback". Used for filtering in the admin UI.
EventType string
// TargetURL is the HTTP endpoint that will receive a POST with the payload.
// It is persisted at enqueue time so retries are independent of config changes.
TargetURL string
// Payload is any JSON-serialisable value. It will be stored as jsonb.
Payload any
// TenantID is optional — used for filtering in the admin UI.
TenantID string
// CreatedBy is the user ID that triggered the outbound call (optional).
CreatedBy string
// MaxAttempts overrides the default of 5. Zero means use the default.
MaxAttempts int
}
Message is the caller-facing type for enqueuing an outbound HTTP call. Payload accepts any JSON-serialisable value; it is marshalled internally.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service provides the Enqueue / EnqueueTx surface for any module that needs reliable outbound HTTP delivery.