stats

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_v2ray_com_core_app_stats_config_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Config

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

func (*Config) Descriptor deprecated

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

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

func (x *Config) ProtoReflect() protoreflect.Message

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

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

func (*Manager) Type() interface{}

func (*Manager) UnregisterCounter

func (m *Manager) UnregisterCounter(name string) error

func (*Manager) Visit

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