notification

package
v0.0.0-...-96c6490 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SendOptions

type SendOptions struct {
	To       string
	Key      string
	Title    string
	Template string
	Data     any
}

type Service

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

func New

func New(c *cli.Context, db *pg.DB) *Service

func (*Service) Send

func (s *Service) Send(opts SendOptions) error

func (*Service) SendExpired

func (s *Service) SendExpired(to string, r *vaultModels.Resource) error

func (*Service) SendExpiring

func (s *Service) SendExpiring(to string, days int, resources []vaultModels.Resource) error

func (*Service) SendTransferTimeout

func (s *Service) SendTransferTimeout(to string, r *vaultModels.Resource) error

func (*Service) SendVaulted

func (s *Service) SendVaulted(to string, r *vaultModels.Resource) error

Jump to

Keyboard shortcuts

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