Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
Register creates the channel a webhook source reads its path from. It holds the path if nothing else does, and otherwise waits to take it over.
func Unregister ¶
Unregister releases a channel's claim on a path. Only the channel that holds the path removes it, so an outgoing engine's teardown cannot remove the source that took over from it.
Types ¶
type WebhookSource ¶
type WebhookSource struct {
Path string
// contains filtered or unexported fields
}
WebhookSource implements the hermod.Source interface for receiving HTTP requests.
func NewWebhookSource ¶
func NewWebhookSource(path string) *WebhookSource
NewWebhookSource creates a new WebhookSource.
func (*WebhookSource) Close ¶
func (s *WebhookSource) Close() error
Close unregisters the source, unless another has already taken the path over.
Click to show internal directories.
Click to hide internal directories.