util

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: MIT Imports: 1 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Error(...interface{})
	Info(...interface{})
	Fatal(...interface{})
	Panic(...interface{})
	Warn(...interface{})
	Errorf(string, ...interface{})
	Infof(string, ...interface{})
	Fatalf(string, ...interface{})
	Panicf(string, ...interface{})
	Warnf(string, ...interface{})
}

type Metrics

type Metrics interface {
	Incr(name string, tags []string, rate float64) error
	Decr(name string, tags []string, rate float64) error
	Count(name string, value int64, tags []string, rate float64) error
	Gauge(name string, value float64, tags []string, rate float64) error
	Close() error
	ServiceCheck(sc *statsd.ServiceCheck) error
	SimpleEvent(title, text string) error
	Event(e *statsd.Event) error
}

Jump to

Keyboard shortcuts

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