notify

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: Apache-2.0 Imports: 20 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) error
}

type Notification

type Notification struct {
	Req      *protos.NotifyRequest
	Pipeline *protos.Pipeline
	Aud      *protos.Audience
	Configs  []*protos.NotificationConfig
}

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(ctx context.Context, req *protos.NotifyRequest) error

Jump to

Keyboard shortcuts

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