Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
func NewService(db *gorm.DB, amClient alertmanager.Client, c domain.SirenServiceConfig) domain.AlertmanagerService
Types ¶
type PagerdutyCredential ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository(db *gorm.DB) *Repository
func (Repository) GetCredential ¶
func (r Repository) GetCredential(teamName string) (map[string]SlackCredential, PagerdutyCredential, error)
func (Repository) UpsertPagerduty ¶
func (r Repository) UpsertPagerduty(credential PagerdutyCredential) error
func (Repository) UpsertSlack ¶
func (r Repository) UpsertSlack(credential SlackCredential) error
Click to show internal directories.
Click to hide internal directories.