plugin

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

nolint:dupl

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin interface {
	CallPhone(context.Context, user.Item, string, string) error
	SendSms(context.Context, user.Item, string, string) error
	MessageSlack(context.Context, user.Item, string, string) error
}

type RestAPI

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

func NewRestAPI

func NewRestAPI(l *zerolog.Logger) *RestAPI

func (*RestAPI) CallPhone

func (t *RestAPI) CallPhone(_ context.Context, u user.Item, alertID, alertText string) error

func (*RestAPI) MessageSlack

func (t *RestAPI) MessageSlack(_ context.Context, u user.Item, alertID, alertText string) error

func (*RestAPI) SendSms

func (t *RestAPI) SendSms(_ context.Context, u user.Item, alertID, alertText string) error

type TextOutput

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

func NewTextOutput

func NewTextOutput(l zerolog.Logger) *TextOutput

func (*TextOutput) CallPhone

func (t *TextOutput) CallPhone(_ context.Context, u user.Item, alertID, alertText string) error

func (*TextOutput) MessageSlack

func (t *TextOutput) MessageSlack(_ context.Context, u user.Item, alertID, alertText string) error

func (*TextOutput) SendSms

func (t *TextOutput) SendSms(_ context.Context, u user.Item, alertID, alertText string) error

type Voip

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

func NewVoip

func NewVoip(l *zerolog.Logger) *Voip

func (*Voip) CallPhone

func (t *Voip) CallPhone(_ context.Context, u user.Item, alertID, alertText string) error

func (*Voip) MessageSlack

func (t *Voip) MessageSlack(_ context.Context, u user.Item, alertID, alertText string) error

func (*Voip) SendSms

func (t *Voip) SendSms(_ context.Context, u user.Item, alertID, alertText string) error

Jump to

Keyboard shortcuts

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