Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { Payload string `json:"payload"` Headers map[string][]string `json:"headers"` Time time.Time `json:"time"` }
Message represents a webhook message
type Webhook ¶
type Webhook struct { Username string `json:"username,omitempty"` TokenName string `json:"tokenName,omitempty"` ID string `json:"id"` // contains filtered or unexported fields }
Webhook is used after input has been unmarshaled and will be provided to the user as well
func NewWebhook ¶
NewWebhook creates webhook based on input
func NewWebhookFromInput ¶
func NewWebhookFromInput(webhookInput *WebhookInput) *Webhook
NewWebhookFromInput creates Webhook instance based on input
Click to show internal directories.
Click to hide internal directories.