metrics

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Log(key string, value interface{})
	Commit(node interface{})
}

type Metrics

type Metrics struct {
	// contains filtered or unexported fields
}

func New

func New() *Metrics

func (*Metrics) AddLogger

func (m *Metrics) AddLogger(l Logger)

func (*Metrics) Start

func (m *Metrics) Start()

func (*Metrics) Update

func (m *Metrics) Update(node serverprotocol.Node)

type UpdatePackage

type UpdatePackage struct {
	Node  serverprotocol.Node
	State map[string]interface{}
}

Jump to

Keyboard shortcuts

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