entity

package
v0.0.0-...-3d09e97 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 2 Imported by: 0

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
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL