stats

package
v3.50.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 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 {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*Config) XXX_DiscardUnknown added in v3.23.1

func (m *Config) XXX_DiscardUnknown()

func (*Config) XXX_Marshal added in v3.23.1

func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Config) XXX_Merge added in v3.23.1

func (m *Config) XXX_Merge(src proto.Message)

func (*Config) XXX_Size added in v3.23.1

func (m *Config) XXX_Size() int

func (*Config) XXX_Unmarshal added in v3.23.1

func (m *Config) XXX_Unmarshal(b []byte) error

type Counter

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

Counter is an implementation of stats.Counter.

func (*Counter) Add

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

Add implements stats.Counter.

func (*Counter) Set

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

Set implements stats.Counter.

func (*Counter) Value

func (c *Counter) Value() int64

Value implements stats.Counter.

type Manager

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

Manager is an implementation of stats.Manager.

func NewManager

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

func (*Manager) Close

func (m *Manager) Close() error

Close implement common.Closable.

func (*Manager) GetCounter

func (m *Manager) GetCounter(name string) stats.Counter

func (*Manager) RegisterCounter

func (m *Manager) RegisterCounter(name string) (stats.Counter, error)

func (*Manager) Start

func (m *Manager) Start() error

Start implements common.Runnable.

func (*Manager) Type added in v3.50.1

func (*Manager) Type() interface{}

func (*Manager) Visit added in v3.30.1

func (m *Manager) Visit(visitor func(string, stats.Counter) bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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