Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoSuchMobile = errors.Error("no such mobile") ErrIncompleteConfig = errors.Error("incomplete config") )
Functions ¶
This section is empty.
Types ¶
type INotifyService ¶
type INotifyService interface { InitAll() error StopAll() UpdateServices(ctx context.Context, userCred mcclient.TokenCredential, isStart bool) UpdateConfig(ctx context.Context, service string, config SConfig) error Send(ctx context.Context, contactType string, args apis.SendParams) error ContactByMobile(ctx context.Context, mobile, serviceName, domainId string) (string, error) BatchSend(ctx context.Context, contactType string, args apis.BatchSendParams) ([]*apis.FailedRecord, error) SendRobotMessage(ctx context.Context, rType string, receivers []*apis.SReceiver, title string, message string) ([]*apis.FailedRecord, error) AddConfig(ctx context.Context, service string, config SConfig) error DeleteConfig(ctx context.Context, service, domainId string) error ValidateConfig(ctx context.Context, cType string, configs map[string]string) (isValid bool, message string, err error) }
type IServiceConfigStore ¶
type ITemplateStore ¶
type ITemplateStore interface { // NotifyFilter(contactType, topic, msg, lang string) (params apis.SendParams, err error) FillWithTemplate(ctx context.Context, lang string, notification SNotification) (params apis.SendParams, err error) }
type SBatchSendParams ¶
type SNotification ¶
type SNotification struct { ContactType string Topic string Message string Event notify_apis.SNotifyEvent AdvanceDays int }
Click to show internal directories.
Click to hide internal directories.