notify

package
v0.0.0-...-f4090eb Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2026 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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