Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attempt ¶
type Attempt struct { Body string `json:"body"` Headers map[string]string `json:"headers"` StatusCode uint `json:"statusCode"` ElapsedTime int64 `json:"elapsedTime"` CreatedAt time.Time `json:"createdAt"` }
Attempt :
type WebhookRequest ¶
type WebhookRequest struct { ID ksuid.KSUID `json:"id"` Method string `json:"method"` URL string `json:"url"` Headers map[string]string `json:"headers"` Body string `json:"body"` Timeout uint `json:"timeout"` Attempts []Attempt `json:"attempts"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` }
WebhookRequest :
type WebhookRequestStatus ¶
type WebhookRequestStatus int
const ( WebhookRequestPending WebhookRequestStatus = iota WebhookRequestFailed WebhookRequestSuccess )
Click to show internal directories.
Click to hide internal directories.