notifi

package
v0.9.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	StreamName = "NOTIFI"

	BaseSubject events.Subject = "notifi"

	UserNotification events.Type = "user"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type INotifi

type INotifi interface {
	NotifyUser(ctx context.Context, not *notifications.Notification) error
}

func New

func New(p Params) INotifi

type Notifi

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

func (*Notifi) NotifyUser added in v0.8.0

func (n *Notifi) NotifyUser(ctx context.Context, not *notifications.Notification) error

type Params added in v0.8.0

type Params struct {
	fx.In

	LC     fx.Lifecycle
	Logger *zap.Logger
	DB     *sql.DB
	JS     *events.JSWrapper
}

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