notify

package
v0.0.49 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EmailSubject = "Streamdal Alert"
)

Variables

View Source
var (
	ErrMissingStorageService = errors.New("Store cannot be nil")
	ErrMissingShutdownCtx    = errors.New("ShutdownCtx cannot be nil")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Store       store.IStore
	ShutdownCtx context.Context
}

type INotifier

type INotifier interface {
	Queue(ctx context.Context, event *protos.NotifyRequest)
}

type Notify

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

func New

func New(cfg *Config) (*Notify, error)

func (*Notify) Queue

func (n *Notify) Queue(_ context.Context, req *protos.NotifyRequest)

Jump to

Keyboard shortcuts

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