import "github.com/v2ray/v2ray-core/app/stats/command"
command.go command.pb.go command_grpc.pb.go errors.generated.go
var File_app_stats_command_command_proto protoreflect.FileDescriptor
func RegisterStatsServiceServer(s *grpc.Server, srv StatsServiceServer)
type Config struct {
// contains filtered or unexported fields
}
Deprecated: Use Config.ProtoReflect.Descriptor instead.
func (x *Config) ProtoReflect() protoreflect.Message
type GetStatsRequest struct { // Name of the stat counter. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Whether or not to reset the counter to fetching its value. Reset_ bool `protobuf:"varint,2,opt,name=reset,proto3" json:"reset,omitempty"` // contains filtered or unexported fields }
func (*GetStatsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetStatsRequest.ProtoReflect.Descriptor instead.
func (x *GetStatsRequest) GetName() string
func (x *GetStatsRequest) GetReset_() bool
func (*GetStatsRequest) ProtoMessage()
func (x *GetStatsRequest) ProtoReflect() protoreflect.Message
func (x *GetStatsRequest) Reset()
func (x *GetStatsRequest) String() string
type GetStatsResponse struct { Stat *Stat `protobuf:"bytes,1,opt,name=stat,proto3" json:"stat,omitempty"` // contains filtered or unexported fields }
func (*GetStatsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetStatsResponse.ProtoReflect.Descriptor instead.
func (x *GetStatsResponse) GetStat() *Stat
func (*GetStatsResponse) ProtoMessage()
func (x *GetStatsResponse) ProtoReflect() protoreflect.Message
func (x *GetStatsResponse) Reset()
func (x *GetStatsResponse) String() string
type QueryStatsRequest struct { Pattern string `protobuf:"bytes,1,opt,name=pattern,proto3" json:"pattern,omitempty"` Reset_ bool `protobuf:"varint,2,opt,name=reset,proto3" json:"reset,omitempty"` // contains filtered or unexported fields }
func (*QueryStatsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryStatsRequest.ProtoReflect.Descriptor instead.
func (x *QueryStatsRequest) GetPattern() string
func (x *QueryStatsRequest) GetReset_() bool
func (*QueryStatsRequest) ProtoMessage()
func (x *QueryStatsRequest) ProtoReflect() protoreflect.Message
func (x *QueryStatsRequest) Reset()
func (x *QueryStatsRequest) String() string
type QueryStatsResponse struct { Stat []*Stat `protobuf:"bytes,1,rep,name=stat,proto3" json:"stat,omitempty"` // contains filtered or unexported fields }
func (*QueryStatsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryStatsResponse.ProtoReflect.Descriptor instead.
func (x *QueryStatsResponse) GetStat() []*Stat
func (*QueryStatsResponse) ProtoMessage()
func (x *QueryStatsResponse) ProtoReflect() protoreflect.Message
func (x *QueryStatsResponse) Reset()
func (x *QueryStatsResponse) String() string
type Stat struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Value int64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
Deprecated: Use Stat.ProtoReflect.Descriptor instead.
func (x *Stat) ProtoReflect() protoreflect.Message
type StatsServiceClient interface { GetStats(ctx context.Context, in *GetStatsRequest, opts ...grpc.CallOption) (*GetStatsResponse, error) QueryStats(ctx context.Context, in *QueryStatsRequest, opts ...grpc.CallOption) (*QueryStatsResponse, error) GetSysStats(ctx context.Context, in *SysStatsRequest, opts ...grpc.CallOption) (*SysStatsResponse, error) }
StatsServiceClient is the client API for StatsService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewStatsServiceClient(cc grpc.ClientConnInterface) StatsServiceClient
type StatsServiceServer interface { GetStats(context.Context, *GetStatsRequest) (*GetStatsResponse, error) QueryStats(context.Context, *QueryStatsRequest) (*QueryStatsResponse, error) GetSysStats(context.Context, *SysStatsRequest) (*SysStatsResponse, error) // contains filtered or unexported methods }
StatsServiceServer is the server API for StatsService service. All implementations must embed UnimplementedStatsServiceServer for forward compatibility
func NewStatsServer(manager feature_stats.Manager) StatsServiceServer
type SysStatsRequest struct {
// contains filtered or unexported fields
}
func (*SysStatsRequest) Descriptor() ([]byte, []int)
Deprecated: Use SysStatsRequest.ProtoReflect.Descriptor instead.
func (*SysStatsRequest) ProtoMessage()
func (x *SysStatsRequest) ProtoReflect() protoreflect.Message
func (x *SysStatsRequest) Reset()
func (x *SysStatsRequest) String() string
type SysStatsResponse struct { NumGoroutine uint32 `protobuf:"varint,1,opt,name=NumGoroutine,proto3" json:"NumGoroutine,omitempty"` NumGC uint32 `protobuf:"varint,2,opt,name=NumGC,proto3" json:"NumGC,omitempty"` Alloc uint64 `protobuf:"varint,3,opt,name=Alloc,proto3" json:"Alloc,omitempty"` TotalAlloc uint64 `protobuf:"varint,4,opt,name=TotalAlloc,proto3" json:"TotalAlloc,omitempty"` Sys uint64 `protobuf:"varint,5,opt,name=Sys,proto3" json:"Sys,omitempty"` Mallocs uint64 `protobuf:"varint,6,opt,name=Mallocs,proto3" json:"Mallocs,omitempty"` Frees uint64 `protobuf:"varint,7,opt,name=Frees,proto3" json:"Frees,omitempty"` LiveObjects uint64 `protobuf:"varint,8,opt,name=LiveObjects,proto3" json:"LiveObjects,omitempty"` PauseTotalNs uint64 `protobuf:"varint,9,opt,name=PauseTotalNs,proto3" json:"PauseTotalNs,omitempty"` Uptime uint32 `protobuf:"varint,10,opt,name=Uptime,proto3" json:"Uptime,omitempty"` // contains filtered or unexported fields }
func (*SysStatsResponse) Descriptor() ([]byte, []int)
Deprecated: Use SysStatsResponse.ProtoReflect.Descriptor instead.
func (x *SysStatsResponse) GetAlloc() uint64
func (x *SysStatsResponse) GetFrees() uint64
func (x *SysStatsResponse) GetLiveObjects() uint64
func (x *SysStatsResponse) GetMallocs() uint64
func (x *SysStatsResponse) GetNumGC() uint32
func (x *SysStatsResponse) GetNumGoroutine() uint32
func (x *SysStatsResponse) GetPauseTotalNs() uint64
func (x *SysStatsResponse) GetSys() uint64
func (x *SysStatsResponse) GetTotalAlloc() uint64
func (x *SysStatsResponse) GetUptime() uint32
func (*SysStatsResponse) ProtoMessage()
func (x *SysStatsResponse) ProtoReflect() protoreflect.Message
func (x *SysStatsResponse) Reset()
func (x *SysStatsResponse) String() string
type UnimplementedStatsServiceServer struct { }
UnimplementedStatsServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedStatsServiceServer) GetStats(context.Context, *GetStatsRequest) (*GetStatsResponse, error)
func (UnimplementedStatsServiceServer) GetSysStats(context.Context, *SysStatsRequest) (*SysStatsResponse, error)
func (UnimplementedStatsServiceServer) QueryStats(context.Context, *QueryStatsRequest) (*QueryStatsResponse, error)
type UnsafeStatsServiceServer interface {
// contains filtered or unexported methods
}
UnsafeStatsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StatsServiceServer will result in compilation errors.
Package command imports 17 packages (graph). Updated 2020-11-28. Refresh now. Tools for package owners.