Documentation
¶
Index ¶
- type AlertMockServer
- func (s *AlertMockServer) GetAlerts() []AlertRequest
- func (s *AlertMockServer) GetAlertsForDestination(destinationID string) []AlertRequest
- func (s *AlertMockServer) GetCallbackURL() string
- func (s *AlertMockServer) GetLastAlert() *AlertRequest
- func (s *AlertMockServer) Reset()
- func (s *AlertMockServer) Start() error
- func (s *AlertMockServer) Stop() error
- type AlertPayload
- type AlertRequest
- type ConsecutiveFailureData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertMockServer ¶
type AlertMockServer struct {
// contains filtered or unexported fields
}
func NewAlertMockServer ¶
func NewAlertMockServer() *AlertMockServer
func (*AlertMockServer) GetAlerts ¶
func (s *AlertMockServer) GetAlerts() []AlertRequest
func (*AlertMockServer) GetAlertsForDestination ¶
func (s *AlertMockServer) GetAlertsForDestination(destinationID string) []AlertRequest
Helper methods for assertions
func (*AlertMockServer) GetCallbackURL ¶
func (s *AlertMockServer) GetCallbackURL() string
func (*AlertMockServer) GetLastAlert ¶
func (s *AlertMockServer) GetLastAlert() *AlertRequest
func (*AlertMockServer) Reset ¶
func (s *AlertMockServer) Reset()
func (*AlertMockServer) Start ¶
func (s *AlertMockServer) Start() error
func (*AlertMockServer) Stop ¶
func (s *AlertMockServer) Stop() error
type AlertPayload ¶
type AlertPayload struct { Topic string `json:"topic"` Timestamp time.Time `json:"timestamp"` Data ConsecutiveFailureData `json:"data"` }
type AlertRequest ¶
type AlertRequest struct { Alert AlertPayload AuthHeader string }
type ConsecutiveFailureData ¶
Click to show internal directories.
Click to hide internal directories.