core

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitOnCallWorkflow

func InitOnCallWorkflow(
	awsClient *ssmincidents.Client,
	redisClient *redis.Client,
)

Types

type Alert

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

func NewAlert

func NewAlert(providers ...AlertProvider) *Alert

func (*Alert) SendAlert

func (a *Alert) SendAlert(incident *m.Incident) error

type AlertProvider

type AlertProvider interface {
	SendAlert(incident *m.Incident) error
}

AlertProvider interface remains the same

type OnCallWorkflow

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

func GetOnCallWorkflow

func GetOnCallWorkflow() *OnCallWorkflow

func (*OnCallWorkflow) Ack

func (w *OnCallWorkflow) Ack(incidentID string) error

func (*OnCallWorkflow) Start

func (w *OnCallWorkflow) Start(incidentID string, oc config.OnCallConfig) error

type QueueListener

type QueueListener interface {
	StartListening(handler func(content *map[string]interface{}) error) error
}

Jump to

Keyboard shortcuts

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