Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface { // Execute executes given command and placeholders on the middleware Execute(command string, args ...interface{}) (middleware.Result, error) // Transaction returns a middleware.Transaction that could execute multiple commands as a transaction Transaction() (middleware.Transaction, error) // Save saves alert message to the middleware Save(url, toAddrs, ccAddrs, subject, content, config, message string) error }
type Service ¶
type Service interface { // GetRepository returns the repository of the service GetRepository() Repository // GetConfig returns the config of the service GetConfig() Config // SendEmail sends the email SendEmail(toAddrs, ccAddrs, subject, content string) error // Save saves the email into the middleware Save(toAddrs, ccAddrs, subject, content, message string) error }
Click to show internal directories.
Click to hide internal directories.