Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConsoleBackend ¶
type ConsoleBackend struct {
// contains filtered or unexported fields
}
ConsoleBackend is a backend which prints to the console or any output stream
func NewConsole ¶
func NewConsole(out io.Writer) *ConsoleBackend
NewConsole creates a new console backend
func (*ConsoleBackend) Gauge ¶
func (b *ConsoleBackend) Gauge(name string, value float64)
func (*ConsoleBackend) Name ¶
func (b *ConsoleBackend) Name() string
func (*ConsoleBackend) Start ¶
func (b *ConsoleBackend) Start() error
func (*ConsoleBackend) Stop ¶
func (b *ConsoleBackend) Stop() error
type LibratoBackend ¶
type LibratoBackend struct {
// contains filtered or unexported fields
}
LibratoBackend is a backend which sends analytics to Librato
func NewLibrato ¶
func (*LibratoBackend) Gauge ¶
func (b *LibratoBackend) Gauge(name string, value float64)
func (*LibratoBackend) Name ¶
func (b *LibratoBackend) Name() string
func (*LibratoBackend) Start ¶
func (b *LibratoBackend) Start() error
func (*LibratoBackend) Stop ¶
func (b *LibratoBackend) Stop() error
type MockBackend ¶ added in v1.22.3
MockBackend is a backend which records values for testing
func (*MockBackend) Gauge ¶ added in v1.22.3
func (b *MockBackend) Gauge(name string, value float64)
func (*MockBackend) Name ¶ added in v1.22.3
func (b *MockBackend) Name() string
func (*MockBackend) Start ¶ added in v1.22.3
func (b *MockBackend) Start() error
func (*MockBackend) Stop ¶ added in v1.22.3
func (b *MockBackend) Stop() error
Click to show internal directories.
Click to hide internal directories.