notify

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PushExpireMsg

func PushExpireMsg()

func Send

func Send(title, content string) error

func SendTest

func SendTest(param *sendTestParam) error

Types

type Mail added in v0.2.10

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

func NewMail added in v0.2.10

func NewMail(senderAddress, receiverAddresses, smtpHostAddr, smtpHostPort string) *Mail

func (*Mail) Send added in v0.2.10

func (m *Mail) Send(ctx context.Context, subject, message string) error

func (*Mail) SetAuth added in v0.2.10

func (m *Mail) SetAuth(username, password string)

type NotifyService

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

func NewNotifyService

func NewNotifyService(settingRepo SettingRepository) *NotifyService

func (*NotifyService) Test

type SettingRepository

type SettingRepository interface {
	GetByName(ctx context.Context, name string) (*domain.Setting, error)
}

Jump to

Keyboard shortcuts

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