events

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GatewayPromotionSucceededEvent = "gateway_promotion_succeeded"
	GatewayPromotionFailedEvent    = "gateway_promotion_failed"
	GatewayDemotionSucceededEvent  = "gateway_demotion_succeeded"
	GatewayDemotionFailedEvent     = "gateway_demotion_failed"
)

Variables

This section is empty.

Functions

func LogGatewayHealthFailedEvent

func LogGatewayHealthFailedEvent(eventType string, failureReason string)

LogGatewayHealthFailedEvent logs a failed promotion/demotion event with its associated error.

func LogGatewayHealthSuccessEvent

func LogGatewayHealthSuccessEvent(eventType string)

LogGatewayHealthSuccessEvent logs a successful promotion/demotion event.

Types

type GatewayHealthFailed

type GatewayHealthFailed struct {
	FailureReason string `json:"failure_reason"`
}

GatewayHealthFailed event

Jump to

Keyboard shortcuts

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