alerter

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alerter

type Alerter interface {
	SendAlert(ctx context.Context, err error, data map[string]interface{})
}

type NoOpAlerter

type NoOpAlerter struct{}

func (NoOpAlerter) SendAlert

func (s NoOpAlerter) SendAlert(ctx context.Context, err error, data map[string]interface{})

type SentryAlerter

type SentryAlerter struct {
	// contains filtered or unexported fields
}

func NewSentryAlerter

func NewSentryAlerter(sentryDSN, sentryEnv string) (*SentryAlerter, error)

func (*SentryAlerter) SendAlert

func (s *SentryAlerter) SendAlert(ctx context.Context, err error, data map[string]interface{})

Jump to

Keyboard shortcuts

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