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 NewNewRelicApp ¶
func NewNewRelicApp(nrc config.NewRelicConfig) (*newrelic.Application, error)
Types ¶
type MockPrometheus ¶
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
Click to show internal directories.
Click to hide internal directories.