backend

package
v0.0.0-...-9faa968 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2019 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	Prefix  = "hemera"
	Counter = "counters"
	Gauge   = "gauges"
	Set     = "sets"
	Timer   = "timers"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	Purge(c *cache.Cache) error
}

Backend interface handles flushing data from cache to a receiver i.e graphite Do not worry about clearing the cache from the backend interface as it is done at the server layer this allows multiple backends to be used during a purge cycle

type Graphite

type Graphite struct {
	Addr   string
	Logger *log.Logger
}

Graphite implementation of backend interface

func (*Graphite) Purge

func (g *Graphite) Purge(c *cache.Cache) (err error)

Purge implements backend interface

FIXME: Function 'Purge' has too many statements (48 > 40) (funlen)

Jump to

Keyboard shortcuts

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