notifier

package
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RecordIsOpen added in v0.34.0

func RecordIsOpen(ctx context.Context) (bool, error)

func RecordPathFromContext added in v0.34.0

func RecordPathFromContext(ctx context.Context) (string, error)

Types

type ChangeStore added in v0.34.0

type ChangeStore interface {
	AwaitNextChangeBatch(ctx context.Context) (state.ChangeBatch, error)
}

type Hook

type Hook func(ctx context.Context, changes state.Changes) error

type Notifier

type Notifier struct {
	// contains filtered or unexported fields
}

func NewNotifier

func NewNotifier(changeStore ChangeStore, hooks []Hook) *Notifier

func (*Notifier) SetLogger

func (n *Notifier) SetLogger(logger *log.Logger)

func (*Notifier) Start

func (n *Notifier) Start(ctx context.Context)

Jump to

Keyboard shortcuts

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