Documentation ¶
Overview ¶
Package alerts handles the alerting systems such as Sentry, etc
Package sentry implements the Alert interface for Sentry alerting systems
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alert ¶
type Alert interface { // CaptureError captures error and a message and sends an alert CaptureError(err error, message string) // Bootstrap acts like a constructor to setup alerting parameters such as environment, alerting endpoint, etc. Bootstrap() error }
Alert is an interface to configure alerting system. Cyclops provides sentry alerting by default and implements the following methods
type Sentry ¶
type Sentry struct { // DSN is the URL for sentry DSN string // Environment specifies if alert belongs to dev, stage, production environment Environment string // Enabled is a trigger for an alert to be enabled or disabled Enabled bool }
Sentry struct to hold sentry variables
func (Sentry) Bootstrap ¶ added in v1.3.0
Bootstrap initializes the raven DSN by setting the environment
func (Sentry) CaptureError ¶
CaptureError implements the alert interface to capture error and send a message if alerting is enabled
Click to show internal directories.
Click to hide internal directories.