reporters

package
v0.0.0-...-221af98 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExternalLogFile

func NewExternalLogFile(cfg config.LogFileConfig) *lumberjack.Logger

TODO: HOW DO YOU DEAL WITH LOG ROTATION ?

func NewLogger

func NewLogger(env, level string, writers ...io.Writer) *zap.Logger

func NewNewRelicApp

func NewNewRelicApp(nrc config.NewRelicConfig) (*newrelic.Application, error)

Types

type MockPrometheus

type MockPrometheus struct {
	mock.Mock
}

func (*MockPrometheus) Observe

func (mp *MockPrometheus) Observe(bucket string, value float64)

func (*MockPrometheus) ReportAttempt

func (mp *MockPrometheus) ReportAttempt(bucket string)

func (*MockPrometheus) ReportFailure

func (mp *MockPrometheus) ReportFailure(bucket string)

func (*MockPrometheus) ReportSuccess

func (mp *MockPrometheus) ReportSuccess(bucket string)

type Prometheus

type Prometheus interface {
	ReportAttempt(bucket string)
	ReportSuccess(bucket string)
	ReportFailure(bucket string)
	Observe(bucket string, value float64)
}

func NewPrometheus

func NewPrometheus() Prometheus

Jump to

Keyboard shortcuts

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