notify

package
v0.0.0-...-18d92cd Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NOTIFICATION_PAYMENT_RECEIVED      = "payment_received"
	NOTIFICATION_TX_CONFIRMED          = "tx_confirmed"
	NOTIFICATION_ADDRESS_TXS_CONFIRMED = "address_txs_confirmed"
	NOTIFICATION_LNURLPAY_INFO         = "lnurlpay_info"
	NOTIFICATION_LNURLPAY_INVOICE      = "lnurlpay_invoice"
	NOTIFICATION_LNURLPAY_VERIFY       = "lnurlpay_verify"
	NOTIFICATION_SWAP_UPDATED          = "swap_updated"
	NOTIFICATION_INVOICE_REQUEST       = "invoice_request"
	NOTIFICATION_NWC_EVENT             = "nwc_event"
)

Variables

View Source
var (
	ErrServiceNotFound = errors.New("Service not found")
)

Functions

This section is empty.

Types

type Notification

type Notification struct {
	Template         string
	DisplayMessage   string
	Type             string
	TargetIdentifier string
	AppData          *string
	Data             map[string]interface{}
}

type Notifier

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

func NewNotifier

func NewNotifier(config *config.Config, services map[string]Service) *Notifier

func (*Notifier) Notify

func (n *Notifier) Notify(c context.Context, request *Notification) error

type Service

type Service interface {
	Send(context context.Context, req *Notification) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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