Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDispatcherFromConfig ¶
func NewDispatcherFromConfig(cfg *config.WebhookDispatcherConfig) (webhookd.WebhookDispatcher, error)
Types ¶
type ForwarderDispatcher ¶
type ForwarderDispatcher struct {
webhookd.WebhookDispatcher
DestinationURL string
}
func NewForwarderDispatcher ¶
func NewForwarderDispatcher(destinationURL string) (*ForwarderDispatcher, error)
func (*ForwarderDispatcher) Dispatch ¶
func (fdr *ForwarderDispatcher) Dispatch(body []byte) *webhookd.WebhookError
type LambdaDispatcher ¶
type LambdaDispatcher struct {
webhookd.WebhookDispatcher
LambdaFunction string
LambdaService *lambda.Lambda
}
func NewLambdaDispatcher ¶
func NewLambdaDispatcher(lambda_dsn string, lambda_function string) (*LambdaDispatcher, error)
func (*LambdaDispatcher) Dispatch ¶
func (d *LambdaDispatcher) Dispatch(body []byte) *webhookd.WebhookError
type LogDispatcher ¶
type LogDispatcher struct {
webhookd.WebhookDispatcher
}
func NewLogDispatcher ¶
func NewLogDispatcher() (*LogDispatcher, error)
func (*LogDispatcher) Dispatch ¶
func (n *LogDispatcher) Dispatch(body []byte) *webhookd.WebhookError
type NullDispatcher ¶
type NullDispatcher struct {
webhookd.WebhookDispatcher
}
func NewNullDispatcher ¶
func NewNullDispatcher() (*NullDispatcher, error)
func (*NullDispatcher) Dispatch ¶
func (n *NullDispatcher) Dispatch(body []byte) *webhookd.WebhookError
type PubSubDispatcher ¶
type PubSubDispatcher struct {
webhookd.WebhookDispatcher
// contains filtered or unexported fields
}
func NewPubSubDispatcher ¶
func NewPubSubDispatcher(host string, port string, channel string) (*PubSubDispatcher, error)
func (*PubSubDispatcher) Dispatch ¶
func (dispatcher *PubSubDispatcher) Dispatch(body []byte) *webhookd.WebhookError
type SlackDispatcher ¶
type SlackDispatcher struct {
webhookd.WebhookDispatcher
// contains filtered or unexported fields
}
func NewSlackDispatcher ¶
func NewSlackDispatcher(slackcat_config string) (*SlackDispatcher, error)
func (*SlackDispatcher) Dispatch ¶
func (sl *SlackDispatcher) Dispatch(body []byte) *webhookd.WebhookError
Click to show internal directories.
Click to hide internal directories.