stats

package
v3.18.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
}

func (*Config) Descriptor

func (*Config) Descriptor() ([]byte, []int)

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) Reset

func (m *Config) Reset()

func (*Config) String

func (m *Config) String() string

type Counter

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

Counter is an implementation of core.StatCounter.

func (*Counter) Add

func (c *Counter) Add(delta int64) int64

Add implements core.StatCounter.

func (*Counter) Set

func (c *Counter) Set(newValue int64) int64

Set implements core.StatCounter.

func (*Counter) Value

func (c *Counter) Value() int64

Value implements core.StatCounter.

type Manager

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

Manager is an implementation of core.StatManager.

func NewManager

func NewManager(ctx context.Context, config *Config) (*Manager, error)

func (*Manager) Close

func (m *Manager) Close() error

func (*Manager) GetCounter

func (m *Manager) GetCounter(name string) core.StatCounter

func (*Manager) RegisterCounter

func (m *Manager) RegisterCounter(name string) (core.StatCounter, error)

func (*Manager) Start

func (m *Manager) Start() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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