Versions in this module Expand all Collapse all v0 v0.4.0 Jan 27, 2017 Changes in this version + func GetUserEvents(db database.QueryExecuter, pb *sdk.PipelineBuild, previous *sdk.PipelineBuild) []sdk.EventNotif v0.3.0 Jan 12, 2017 Changes in this version + func Delete(db database.QueryExecuter, ids []int) error + func DeleteNotification(db database.QueryExecuter, appID, pipID, envID int64) error + func Initialize(urls, key, base string) + func Insert(db database.Querier, notif *sdk.Notif, notifType string) error + func InsertOrUpdateUserNotificationSettings(db database.QueryExecuter, appID, pipID, envID int64, ...) error + func LoadAllUserNotificationSettings(db database.Querier, appID int64) ([]sdk.UserNotification, error) + func LoadUserNotificationSettings(db database.Querier, appID, pipID, envID int64) (*sdk.UserNotification, error) + func ParseUserNotification(body []byte) (*sdk.UserNotification, error) + func ParseUserNotificationSettings(settings []byte) (map[sdk.UserNotificationSettingsType]sdk.UserNotificationSettings, error) + func SendActionBuild(db database.QueryExecuter, ab *sdk.ActionBuild, event sdk.NotifEventType, ...) + func SendBuiltinNotif(db database.QueryExecuter, ab *sdk.ActionBuild, notif sdk.Notif) + func SendMailNotif(notif *sdk.Notif) + func SendPipeline(db database.QueryExecuter, pb *sdk.PipelineBuild, event sdk.NotifEventType, ...) + func ShouldSendUserNotification(notif sdk.UserNotificationSettings, current *sdk.PipelineBuild, ...) bool + func Status() []string + func Update(db database.QueryExecuter, notif *sdk.Notif, status string) error + type UserNotificationInput struct + ApplicationPipelineID int64 + Environment sdk.Environment + Notifications map[string]interface{} + Pipeline sdk.Pipeline