alert

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	// contains filtered or unexported fields
}

Repository is an interface for alert repository

func NewAlertRepository

func NewAlertRepository(c configs.Config) *Repository

NewAlertRepository creates a new alert repository

func (*Repository) CreateAlert

func (r *Repository) CreateAlert(ctx context.Context, alert models.Alert) error

CreateAlert creates an alert

func (*Repository) CreateSquadcastIncident

func (r *Repository) CreateSquadcastIncident(alert models.Alert) error

CreateSquadcastIncident creates an incident in squadcast

func (*Repository) CreateTelegramMessage

func (r *Repository) CreateTelegramMessage(alert models.Alert) error

CreateTelegramMessage sends a telegram message

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL