Documentation ¶
Index ¶
Constants ¶
View Source
const ( // EMAIL for get Email object EMAIL notification = "EMAIL" // SMS for get sms object SMS notification = "SMS" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Notification ¶
type Notification struct { Data interface{} `json:"data"` Message string `json:"message"` KEY string `json:"key"` Type string `json:"type"` // contains filtered or unexported fields }
Notification struct
type Notifier ¶
type Notifier interface { SendWithTemplate(ctx context.Context, notif Notification, params []Params, template string) error SendWithBody(ctx context.Context, notif Notification, options ...Option) error }
Notifier interface
type Option ¶
type Option func(*Notification)
Option func for SMS
func Line ¶
Line Option func you can specifically send a notif from a line examples: PHONE_NUMBER, EMAIL_ADDRESS,....
func SendDateTime ¶
SendDateTime Option func you can specifically send a notif in specific time
Click to show internal directories.
Click to hide internal directories.