notifi

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type INotifi

type INotifi interface {
	Add(not *notifications.Notification)
}

type Notifi

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

func New

func New(logger *zap.Logger, db *sql.DB, ctx context.Context, events *events.Eventus, workerCount int) *Notifi

func (*Notifi) Add

func (n *Notifi) Add(not *notifications.Notification)

type Types added in v0.6.0

type Types string
const (
	SuccessType Types = "success"
	InfoType    Types = "info"
	WarningType Types = "warning"
	ErrorType   Types = "error"
)

Jump to

Keyboard shortcuts

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