dispatcher

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const SUCCESS = "success"

SUCCESS is string for delivering success.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscordColor

type DiscordColor int

DiscordColor is type for discord message color.

type Dispatcher

type Dispatcher interface {
	SetDispatcher(firstExecution bool, previousFlag tp.StateFlag, notifyInfo tp.NotifyInfo) error
	SendNotification(request tp.ReqMsg) error
}

Dispatcher Notification provides interfaces to send alert dispatcher message with variable channel.

func GetDispatchers

func GetDispatchers(cfg config.NotificationInfo) []Dispatcher

GetDispatchers gets the registered alert channel.

type MockDispatcher

type MockDispatcher struct {
	mock.Mock
}

Dispatcher is an autogenerated mock type for the Dispatcher type

func NewMockDispatcher

func NewMockDispatcher(t mockConstructorTestingTNewDispatcher) *MockDispatcher

NewDispatcher creates a new instance of Dispatcher. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func NewMockDispatchers

func NewMockDispatchers(t mockConstructorTestingTNewDispatcher) []MockDispatcher

func (*MockDispatcher) SendNotification

func (_m *MockDispatcher) SendNotification(request types.ReqMsg) error

SendNotification provides a mock function with given fields: request

type SlackRequestBody added in v1.1.0

type SlackRequestBody struct {
	Text string `json:"text"`
}

Jump to

Keyboard shortcuts

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