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 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 ¶
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"`
}
Click to show internal directories.
Click to hide internal directories.