Documentation
¶
Index ¶
- Constants
- Variables
- func FailureDisableReason(result Result) string
- func Payload(event eventcontract.Event, now time.Time) (string, error)
- func RetryableStatus(statusCode int) bool
- type Attempt
- type Clock
- type Endpoint
- type ErrorClass
- type Evidence
- type HTTPClient
- type HTTPRequest
- type HTTPResponse
- type Request
- type Result
- type Status
- type Store
- type Worker
Constants ¶
View Source
const ( DefaultMaxAttempts = 3 DefaultBackoff = 30 * time.Second )
Variables ¶
View Source
var ErrWorkspaceRequired = workspace.ErrRequired
Functions ¶
func FailureDisableReason ¶
func RetryableStatus ¶
Types ¶
type ErrorClass ¶
type ErrorClass string
const ( ErrorNone ErrorClass = "" ErrorHTTPStatus ErrorClass = "http_status" ErrorNetwork ErrorClass = "network" ErrorSigning ErrorClass = "signing" ErrorStore ErrorClass = "store" ErrorDisabled ErrorClass = "endpoint_disabled" )
type HTTPClient ¶
type HTTPClient interface {
PostWebhook(ctx context.Context, req HTTPRequest) (HTTPResponse, error)
}
type HTTPResponse ¶
type HTTPResponse struct {
StatusCode int
}
Click to show internal directories.
Click to hide internal directories.