notify

package
v0.0.0-...-3030a97 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	Add(...Provider)
	Run(context.Context) error
}

func NewNotify

func NewNotify() Manager

type Notify

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

func (*Notify) Add

func (e *Notify) Add(r ...Provider)

func (*Notify) Run

func (e *Notify) Run(ctx context.Context) (err error)

type Provider

type Provider interface {
	fmt.Stringer
	// Start 启动
	Start(context.Context) error
	// Attempt 是否允许启动
	Attempt() bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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