webhook

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultEventBatchInterval = time.Second * 10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Notifier

type Notifier struct {
	io.Closer
	// contains filtered or unexported fields
}

func NewNotifier

func NewNotifier(ctx context.Context, eventBatchInterval time.Duration, errHandler func(error)) *Notifier

func (*Notifier) Close

func (s *Notifier) Close() error

func (*Notifier) Trigger

func (s *Notifier) Trigger(attr scheduler.WebhookAttrs)

func (*Notifier) Worker

func (s *Notifier) Worker(ctx context.Context)

Jump to

Keyboard shortcuts

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