import "v2ray.com/core/app/stats"
channel.go config.pb.go counter.go errors.generated.go stats.go
var File_app_stats_config_proto protoreflect.FileDescriptor
type Channel struct {
// contains filtered or unexported fields
}
Channel is an implementation of stats.Channel.
func NewChannel(config *ChannelConfig) *Channel
NewChannel creates an instance of Statistics Channel.
Close implements common.Closable.
Publish implements stats.Channel.
Running returns whether the channel is running.
Start implements common.Runnable.
Subscribe implements stats.Channel.
Subscribers implements stats.Channel.
Unsubscribe implements stats.Channel.
type ChannelConfig struct { Blocking bool `protobuf:"varint,1,opt,name=Blocking,proto3" json:"Blocking,omitempty"` SubscriberLimit int32 `protobuf:"varint,2,opt,name=SubscriberLimit,proto3" json:"SubscriberLimit,omitempty"` BufferSize int32 `protobuf:"varint,3,opt,name=BufferSize,proto3" json:"BufferSize,omitempty"` // contains filtered or unexported fields }
func (*ChannelConfig) Descriptor() ([]byte, []int)
Deprecated: Use ChannelConfig.ProtoReflect.Descriptor instead.
func (x *ChannelConfig) GetBlocking() bool
func (x *ChannelConfig) GetBufferSize() int32
func (x *ChannelConfig) GetSubscriberLimit() int32
func (*ChannelConfig) ProtoMessage()
func (x *ChannelConfig) ProtoReflect() protoreflect.Message
func (x *ChannelConfig) Reset()
func (x *ChannelConfig) String() string
type Config struct {
// contains filtered or unexported fields
}
Deprecated: Use Config.ProtoReflect.Descriptor instead.
func (x *Config) ProtoReflect() protoreflect.Message
type Counter struct {
// contains filtered or unexported fields
}
Counter is an implementation of stats.Counter.
Add implements stats.Counter.
Set implements stats.Counter.
Value implements stats.Counter.
type Manager struct {
// contains filtered or unexported fields
}
Manager is an implementation of stats.Manager.
NewManager creates an instance of Statistics Manager.
Close implement common.Closable.
GetChannel implements stats.Manager.
GetCounter implements stats.Manager.
RegisterChannel implements stats.Manager.
RegisterCounter implements stats.Manager.
Start implements common.Runnable.
Type implements common.HasType.
UnregisterChannel implements stats.Manager.
UnregisterCounter implements stats.Manager.
VisitCounters calls visitor function on all managed counters.
Path | Synopsis |
---|---|
command |
Package stats imports 10 packages (graph) and is imported by 13 packages. Updated 2020-10-15. Refresh now. Tools for package owners.