webhook

package
v0.1.6-0...-5c25bcb Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notifier

type Notifier struct {
	NotifyFunc func(topic string, message []byte) error
}

Notifier is mock implementation of webhook notifier.

func NewMockWebhookNotifier

func NewMockWebhookNotifier() *Notifier

NewMockWebhookNotifier returns mock webhook notifier implementation.

func (*Notifier) Notify

func (n *Notifier) Notify(topic string, message []byte) error

Notify is mock implementation of webhook notifier Notify().

Jump to

Keyboard shortcuts

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