Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notification ¶
type NotificationListDb ¶
type NotificationListDb interface { Add(ctx context.Context, notification *Notification) error Delete(ctx context.Context, id primitive.ObjectID) error GetList(ctx context.Context, OwnerId primitive.ObjectID, Type apiPb.ComponentOwnerType) ([]*Notification, error) }
func NewList ¶
func NewList(mongo mongo_helper.Connector) NotificationListDb
type NotificationMethod ¶
type NotificationMethod struct { Id primitive.ObjectID `bson:"_id"` Name string `bson:"name"` Status apiPb.NotificationMethodStatus `bson:"status"` Type apiPb.NotificationMethodType `bson:"type"` Slack *SlackConfig `bson:"slackConfig,omitempty"` WebHook *WebHookConfig `bson:"webhookConfig,omitempty"` }
type NotificationMethodDb ¶
type NotificationMethodDb interface { Create(ctx context.Context, nm *NotificationMethod) error Delete(ctx context.Context, id primitive.ObjectID) error Activate(ctx context.Context, id primitive.ObjectID) error Deactivate(ctx context.Context, id primitive.ObjectID) error Get(ctx context.Context, id primitive.ObjectID) (*NotificationMethod, error) GetAll(ctx context.Context) ([]*NotificationMethod, error) }
func NewMethods ¶
func NewMethods(mongo mongo_helper.Connector) NotificationMethodDb
type SlackConfig ¶
type SlackConfig struct {
Url string `bson:"string"`
}
type WebHookConfig ¶
type WebHookConfig struct {
Url string `bson:"string"`
}
Click to show internal directories.
Click to hide internal directories.