Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterStatsServiceServer(s grpc.ServiceRegistrar, srv StatsServiceServer)
- type Config
- type GetAllOnlineUsersRequest
- type GetAllOnlineUsersResponse
- func (*GetAllOnlineUsersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAllOnlineUsersResponse) GetUsers() []string
- func (*GetAllOnlineUsersResponse) ProtoMessage()
- func (x *GetAllOnlineUsersResponse) ProtoReflect() protoreflect.Message
- func (x *GetAllOnlineUsersResponse) Reset()
- func (x *GetAllOnlineUsersResponse) String() string
- type GetStatsOnlineIpListResponse
- func (*GetStatsOnlineIpListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetStatsOnlineIpListResponse) GetIps() map[string]int64
- func (x *GetStatsOnlineIpListResponse) GetName() string
- func (*GetStatsOnlineIpListResponse) ProtoMessage()
- func (x *GetStatsOnlineIpListResponse) ProtoReflect() protoreflect.Message
- func (x *GetStatsOnlineIpListResponse) Reset()
- func (x *GetStatsOnlineIpListResponse) String() string
- type GetStatsRequest
- func (*GetStatsRequest) Descriptor() ([]byte, []int)deprecated
- 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
- type GetUsersStatsRequest
- func (*GetUsersStatsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUsersStatsRequest) GetIncludeTraffic() bool
- func (x *GetUsersStatsRequest) GetReset_() bool
- func (*GetUsersStatsRequest) ProtoMessage()
- func (x *GetUsersStatsRequest) ProtoReflect() protoreflect.Message
- func (x *GetUsersStatsRequest) Reset()
- func (x *GetUsersStatsRequest) String() string
- type GetUsersStatsResponse
- func (*GetUsersStatsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetUsersStatsResponse) GetUsers() []*UserStat
- func (*GetUsersStatsResponse) ProtoMessage()
- func (x *GetUsersStatsResponse) ProtoReflect() protoreflect.Message
- func (x *GetUsersStatsResponse) Reset()
- func (x *GetUsersStatsResponse) String() string
- type OnlineIPEntry
- func (*OnlineIPEntry) Descriptor() ([]byte, []int)deprecated
- func (x *OnlineIPEntry) GetIp() string
- func (x *OnlineIPEntry) GetLastSeen() int64
- func (*OnlineIPEntry) ProtoMessage()
- func (x *OnlineIPEntry) ProtoReflect() protoreflect.Message
- func (x *OnlineIPEntry) Reset()
- func (x *OnlineIPEntry) String() string
- type QueryStatsRequest
- func (*QueryStatsRequest) Descriptor() ([]byte, []int)deprecated
- 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
- func (*QueryStatsResponse) Descriptor() ([]byte, []int)deprecated
- 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
- type StatsServiceClient
- type StatsServiceServer
- type SysStatsRequest
- type SysStatsResponse
- func (*SysStatsResponse) Descriptor() ([]byte, []int)deprecated
- 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 TrafficUserStat
- func (*TrafficUserStat) Descriptor() ([]byte, []int)deprecated
- func (x *TrafficUserStat) GetDownlink() int64
- func (x *TrafficUserStat) GetUplink() int64
- func (*TrafficUserStat) ProtoMessage()
- func (x *TrafficUserStat) ProtoReflect() protoreflect.Message
- func (x *TrafficUserStat) Reset()
- func (x *TrafficUserStat) String() string
- type UnimplementedStatsServiceServer
- func (UnimplementedStatsServiceServer) GetAllOnlineUsers(context.Context, *GetAllOnlineUsersRequest) (*GetAllOnlineUsersResponse, error)
- func (UnimplementedStatsServiceServer) GetStats(context.Context, *GetStatsRequest) (*GetStatsResponse, error)
- func (UnimplementedStatsServiceServer) GetStatsOnline(context.Context, *GetStatsRequest) (*GetStatsResponse, error)
- func (UnimplementedStatsServiceServer) GetStatsOnlineIpList(context.Context, *GetStatsRequest) (*GetStatsOnlineIpListResponse, error)
- func (UnimplementedStatsServiceServer) GetSysStats(context.Context, *SysStatsRequest) (*SysStatsResponse, error)
- func (UnimplementedStatsServiceServer) GetUsersStats(context.Context, *GetUsersStatsRequest) (*GetUsersStatsResponse, error)
- func (UnimplementedStatsServiceServer) QueryStats(context.Context, *QueryStatsRequest) (*QueryStatsResponse, error)
- type UnsafeStatsServiceServer
- type UserStat
- func (*UserStat) Descriptor() ([]byte, []int)deprecated
- func (x *UserStat) GetEmail() string
- func (x *UserStat) GetIps() []*OnlineIPEntry
- func (x *UserStat) GetTraffic() *TrafficUserStat
- func (*UserStat) ProtoMessage()
- func (x *UserStat) ProtoReflect() protoreflect.Message
- func (x *UserStat) Reset()
- func (x *UserStat) String() string
Constants ¶
const ( StatsService_GetStats_FullMethodName = "/xray.app.stats.command.StatsService/GetStats" StatsService_GetStatsOnline_FullMethodName = "/xray.app.stats.command.StatsService/GetStatsOnline" StatsService_QueryStats_FullMethodName = "/xray.app.stats.command.StatsService/QueryStats" StatsService_GetSysStats_FullMethodName = "/xray.app.stats.command.StatsService/GetSysStats" StatsService_GetStatsOnlineIpList_FullMethodName = "/xray.app.stats.command.StatsService/GetStatsOnlineIpList" StatsService_GetAllOnlineUsers_FullMethodName = "/xray.app.stats.command.StatsService/GetAllOnlineUsers" StatsService_GetUsersStats_FullMethodName = "/xray.app.stats.command.StatsService/GetUsersStats" )
Variables ¶
var File_app_stats_command_command_proto protoreflect.FileDescriptor
var StatsService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "xray.app.stats.command.StatsService", HandlerType: (*StatsServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetStats", Handler: _StatsService_GetStats_Handler, }, { MethodName: "GetStatsOnline", Handler: _StatsService_GetStatsOnline_Handler, }, { MethodName: "QueryStats", Handler: _StatsService_QueryStats_Handler, }, { MethodName: "GetSysStats", Handler: _StatsService_GetSysStats_Handler, }, { MethodName: "GetStatsOnlineIpList", Handler: _StatsService_GetStatsOnlineIpList_Handler, }, { MethodName: "GetAllOnlineUsers", Handler: _StatsService_GetAllOnlineUsers_Handler, }, { MethodName: "GetUsersStats", Handler: _StatsService_GetUsersStats_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "app/stats/command/command.proto", }
StatsService_ServiceDesc is the grpc.ServiceDesc for StatsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterStatsServiceServer ¶
func RegisterStatsServiceServer(s grpc.ServiceRegistrar, srv StatsServiceServer)
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) Descriptor
deprecated
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
type GetAllOnlineUsersRequest ¶
type GetAllOnlineUsersRequest struct {
// contains filtered or unexported fields
}
func (*GetAllOnlineUsersRequest) Descriptor
deprecated
func (*GetAllOnlineUsersRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAllOnlineUsersRequest.ProtoReflect.Descriptor instead.
func (*GetAllOnlineUsersRequest) ProtoMessage ¶
func (*GetAllOnlineUsersRequest) ProtoMessage()
func (*GetAllOnlineUsersRequest) ProtoReflect ¶
func (x *GetAllOnlineUsersRequest) ProtoReflect() protoreflect.Message
func (*GetAllOnlineUsersRequest) Reset ¶
func (x *GetAllOnlineUsersRequest) Reset()
func (*GetAllOnlineUsersRequest) String ¶
func (x *GetAllOnlineUsersRequest) String() string
type GetAllOnlineUsersResponse ¶
type GetAllOnlineUsersResponse struct {
Users []string `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
// contains filtered or unexported fields
}
func (*GetAllOnlineUsersResponse) Descriptor
deprecated
func (*GetAllOnlineUsersResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAllOnlineUsersResponse.ProtoReflect.Descriptor instead.
func (*GetAllOnlineUsersResponse) GetUsers ¶
func (x *GetAllOnlineUsersResponse) GetUsers() []string
func (*GetAllOnlineUsersResponse) ProtoMessage ¶
func (*GetAllOnlineUsersResponse) ProtoMessage()
func (*GetAllOnlineUsersResponse) ProtoReflect ¶
func (x *GetAllOnlineUsersResponse) ProtoReflect() protoreflect.Message
func (*GetAllOnlineUsersResponse) Reset ¶
func (x *GetAllOnlineUsersResponse) Reset()
func (*GetAllOnlineUsersResponse) String ¶
func (x *GetAllOnlineUsersResponse) String() string
type GetStatsOnlineIpListResponse ¶
type GetStatsOnlineIpListResponse struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Ips map[string]int64 `` /* 134-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*GetStatsOnlineIpListResponse) Descriptor
deprecated
func (*GetStatsOnlineIpListResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetStatsOnlineIpListResponse.ProtoReflect.Descriptor instead.
func (*GetStatsOnlineIpListResponse) GetIps ¶
func (x *GetStatsOnlineIpListResponse) GetIps() map[string]int64
func (*GetStatsOnlineIpListResponse) GetName ¶
func (x *GetStatsOnlineIpListResponse) GetName() string
func (*GetStatsOnlineIpListResponse) ProtoMessage ¶
func (*GetStatsOnlineIpListResponse) ProtoMessage()
func (*GetStatsOnlineIpListResponse) ProtoReflect ¶
func (x *GetStatsOnlineIpListResponse) ProtoReflect() protoreflect.Message
func (*GetStatsOnlineIpListResponse) Reset ¶
func (x *GetStatsOnlineIpListResponse) Reset()
func (*GetStatsOnlineIpListResponse) String ¶
func (x *GetStatsOnlineIpListResponse) String() string
type GetStatsRequest ¶
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
deprecated
func (*GetStatsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetStatsRequest.ProtoReflect.Descriptor instead.
func (*GetStatsRequest) GetName ¶
func (x *GetStatsRequest) GetName() string
func (*GetStatsRequest) GetReset_ ¶
func (x *GetStatsRequest) GetReset_() bool
func (*GetStatsRequest) ProtoMessage ¶
func (*GetStatsRequest) ProtoMessage()
func (*GetStatsRequest) ProtoReflect ¶
func (x *GetStatsRequest) ProtoReflect() protoreflect.Message
func (*GetStatsRequest) Reset ¶
func (x *GetStatsRequest) Reset()
func (*GetStatsRequest) String ¶
func (x *GetStatsRequest) String() string
type GetStatsResponse ¶
type GetStatsResponse struct {
Stat *Stat `protobuf:"bytes,1,opt,name=stat,proto3" json:"stat,omitempty"`
// contains filtered or unexported fields
}
func (*GetStatsResponse) Descriptor
deprecated
func (*GetStatsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetStatsResponse.ProtoReflect.Descriptor instead.
func (*GetStatsResponse) GetStat ¶
func (x *GetStatsResponse) GetStat() *Stat
func (*GetStatsResponse) ProtoMessage ¶
func (*GetStatsResponse) ProtoMessage()
func (*GetStatsResponse) ProtoReflect ¶
func (x *GetStatsResponse) ProtoReflect() protoreflect.Message
func (*GetStatsResponse) Reset ¶
func (x *GetStatsResponse) Reset()
func (*GetStatsResponse) String ¶
func (x *GetStatsResponse) String() string
type GetUsersStatsRequest ¶
type GetUsersStatsRequest struct {
IncludeTraffic bool `protobuf:"varint,1,opt,name=include_traffic,json=includeTraffic,proto3" json:"include_traffic,omitempty"`
Reset_ bool `protobuf:"varint,2,opt,name=reset,proto3" json:"reset,omitempty"`
// contains filtered or unexported fields
}
func (*GetUsersStatsRequest) Descriptor
deprecated
func (*GetUsersStatsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUsersStatsRequest.ProtoReflect.Descriptor instead.
func (*GetUsersStatsRequest) GetIncludeTraffic ¶
func (x *GetUsersStatsRequest) GetIncludeTraffic() bool
func (*GetUsersStatsRequest) GetReset_ ¶
func (x *GetUsersStatsRequest) GetReset_() bool
func (*GetUsersStatsRequest) ProtoMessage ¶
func (*GetUsersStatsRequest) ProtoMessage()
func (*GetUsersStatsRequest) ProtoReflect ¶
func (x *GetUsersStatsRequest) ProtoReflect() protoreflect.Message
func (*GetUsersStatsRequest) Reset ¶
func (x *GetUsersStatsRequest) Reset()
func (*GetUsersStatsRequest) String ¶
func (x *GetUsersStatsRequest) String() string
type GetUsersStatsResponse ¶
type GetUsersStatsResponse struct {
Users []*UserStat `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
// contains filtered or unexported fields
}
func (*GetUsersStatsResponse) Descriptor
deprecated
func (*GetUsersStatsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUsersStatsResponse.ProtoReflect.Descriptor instead.
func (*GetUsersStatsResponse) GetUsers ¶
func (x *GetUsersStatsResponse) GetUsers() []*UserStat
func (*GetUsersStatsResponse) ProtoMessage ¶
func (*GetUsersStatsResponse) ProtoMessage()
func (*GetUsersStatsResponse) ProtoReflect ¶
func (x *GetUsersStatsResponse) ProtoReflect() protoreflect.Message
func (*GetUsersStatsResponse) Reset ¶
func (x *GetUsersStatsResponse) Reset()
func (*GetUsersStatsResponse) String ¶
func (x *GetUsersStatsResponse) String() string
type OnlineIPEntry ¶
type OnlineIPEntry struct {
Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
LastSeen int64 `protobuf:"varint,2,opt,name=last_seen,json=lastSeen,proto3" json:"last_seen,omitempty"`
// contains filtered or unexported fields
}
func (*OnlineIPEntry) Descriptor
deprecated
func (*OnlineIPEntry) Descriptor() ([]byte, []int)
Deprecated: Use OnlineIPEntry.ProtoReflect.Descriptor instead.
func (*OnlineIPEntry) GetIp ¶
func (x *OnlineIPEntry) GetIp() string
func (*OnlineIPEntry) GetLastSeen ¶
func (x *OnlineIPEntry) GetLastSeen() int64
func (*OnlineIPEntry) ProtoMessage ¶
func (*OnlineIPEntry) ProtoMessage()
func (*OnlineIPEntry) ProtoReflect ¶
func (x *OnlineIPEntry) ProtoReflect() protoreflect.Message
func (*OnlineIPEntry) Reset ¶
func (x *OnlineIPEntry) Reset()
func (*OnlineIPEntry) String ¶
func (x *OnlineIPEntry) String() string
type QueryStatsRequest ¶
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
deprecated
func (*QueryStatsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryStatsRequest.ProtoReflect.Descriptor instead.
func (*QueryStatsRequest) GetPattern ¶
func (x *QueryStatsRequest) GetPattern() string
func (*QueryStatsRequest) GetReset_ ¶
func (x *QueryStatsRequest) GetReset_() bool
func (*QueryStatsRequest) ProtoMessage ¶
func (*QueryStatsRequest) ProtoMessage()
func (*QueryStatsRequest) ProtoReflect ¶
func (x *QueryStatsRequest) ProtoReflect() protoreflect.Message
func (*QueryStatsRequest) Reset ¶
func (x *QueryStatsRequest) Reset()
func (*QueryStatsRequest) String ¶
func (x *QueryStatsRequest) String() string
type QueryStatsResponse ¶
type QueryStatsResponse struct {
Stat []*Stat `protobuf:"bytes,1,rep,name=stat,proto3" json:"stat,omitempty"`
// contains filtered or unexported fields
}
func (*QueryStatsResponse) Descriptor
deprecated
func (*QueryStatsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryStatsResponse.ProtoReflect.Descriptor instead.
func (*QueryStatsResponse) GetStat ¶
func (x *QueryStatsResponse) GetStat() []*Stat
func (*QueryStatsResponse) ProtoMessage ¶
func (*QueryStatsResponse) ProtoMessage()
func (*QueryStatsResponse) ProtoReflect ¶
func (x *QueryStatsResponse) ProtoReflect() protoreflect.Message
func (*QueryStatsResponse) Reset ¶
func (x *QueryStatsResponse) Reset()
func (*QueryStatsResponse) String ¶
func (x *QueryStatsResponse) String() string
type Stat ¶
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
}
func (*Stat) Descriptor
deprecated
func (*Stat) ProtoMessage ¶
func (*Stat) ProtoMessage()
func (*Stat) ProtoReflect ¶
func (x *Stat) ProtoReflect() protoreflect.Message
type StatsServiceClient ¶
type StatsServiceClient interface {
GetStats(ctx context.Context, in *GetStatsRequest, opts ...grpc.CallOption) (*GetStatsResponse, error)
GetStatsOnline(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)
GetStatsOnlineIpList(ctx context.Context, in *GetStatsRequest, opts ...grpc.CallOption) (*GetStatsOnlineIpListResponse, error)
GetAllOnlineUsers(ctx context.Context, in *GetAllOnlineUsersRequest, opts ...grpc.CallOption) (*GetAllOnlineUsersResponse, error)
GetUsersStats(ctx context.Context, in *GetUsersStatsRequest, opts ...grpc.CallOption) (*GetUsersStatsResponse, 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 ¶
func NewStatsServiceClient(cc grpc.ClientConnInterface) StatsServiceClient
type StatsServiceServer ¶
type StatsServiceServer interface {
GetStats(context.Context, *GetStatsRequest) (*GetStatsResponse, error)
GetStatsOnline(context.Context, *GetStatsRequest) (*GetStatsResponse, error)
QueryStats(context.Context, *QueryStatsRequest) (*QueryStatsResponse, error)
GetSysStats(context.Context, *SysStatsRequest) (*SysStatsResponse, error)
GetStatsOnlineIpList(context.Context, *GetStatsRequest) (*GetStatsOnlineIpListResponse, error)
GetAllOnlineUsers(context.Context, *GetAllOnlineUsersRequest) (*GetAllOnlineUsersResponse, error)
GetUsersStats(context.Context, *GetUsersStatsRequest) (*GetUsersStatsResponse, error)
// contains filtered or unexported methods
}
StatsServiceServer is the server API for StatsService service. All implementations must embed UnimplementedStatsServiceServer for forward compatibility.
func NewStatsServer ¶
func NewStatsServer(manager feature_stats.Manager) StatsServiceServer
type SysStatsRequest ¶
type SysStatsRequest struct {
// contains filtered or unexported fields
}
func (*SysStatsRequest) Descriptor
deprecated
func (*SysStatsRequest) Descriptor() ([]byte, []int)
Deprecated: Use SysStatsRequest.ProtoReflect.Descriptor instead.
func (*SysStatsRequest) ProtoMessage ¶
func (*SysStatsRequest) ProtoMessage()
func (*SysStatsRequest) ProtoReflect ¶
func (x *SysStatsRequest) ProtoReflect() protoreflect.Message
func (*SysStatsRequest) Reset ¶
func (x *SysStatsRequest) Reset()
func (*SysStatsRequest) String ¶
func (x *SysStatsRequest) String() string
type SysStatsResponse ¶
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
deprecated
func (*SysStatsResponse) Descriptor() ([]byte, []int)
Deprecated: Use SysStatsResponse.ProtoReflect.Descriptor instead.
func (*SysStatsResponse) GetAlloc ¶
func (x *SysStatsResponse) GetAlloc() uint64
func (*SysStatsResponse) GetFrees ¶
func (x *SysStatsResponse) GetFrees() uint64
func (*SysStatsResponse) GetLiveObjects ¶
func (x *SysStatsResponse) GetLiveObjects() uint64
func (*SysStatsResponse) GetMallocs ¶
func (x *SysStatsResponse) GetMallocs() uint64
func (*SysStatsResponse) GetNumGC ¶
func (x *SysStatsResponse) GetNumGC() uint32
func (*SysStatsResponse) GetNumGoroutine ¶
func (x *SysStatsResponse) GetNumGoroutine() uint32
func (*SysStatsResponse) GetPauseTotalNs ¶
func (x *SysStatsResponse) GetPauseTotalNs() uint64
func (*SysStatsResponse) GetSys ¶
func (x *SysStatsResponse) GetSys() uint64
func (*SysStatsResponse) GetTotalAlloc ¶
func (x *SysStatsResponse) GetTotalAlloc() uint64
func (*SysStatsResponse) GetUptime ¶
func (x *SysStatsResponse) GetUptime() uint32
func (*SysStatsResponse) ProtoMessage ¶
func (*SysStatsResponse) ProtoMessage()
func (*SysStatsResponse) ProtoReflect ¶
func (x *SysStatsResponse) ProtoReflect() protoreflect.Message
func (*SysStatsResponse) Reset ¶
func (x *SysStatsResponse) Reset()
func (*SysStatsResponse) String ¶
func (x *SysStatsResponse) String() string
type TrafficUserStat ¶
type TrafficUserStat struct {
Uplink int64 `protobuf:"varint,1,opt,name=uplink,proto3" json:"uplink,omitempty"`
Downlink int64 `protobuf:"varint,2,opt,name=downlink,proto3" json:"downlink,omitempty"`
// contains filtered or unexported fields
}
func (*TrafficUserStat) Descriptor
deprecated
func (*TrafficUserStat) Descriptor() ([]byte, []int)
Deprecated: Use TrafficUserStat.ProtoReflect.Descriptor instead.
func (*TrafficUserStat) GetDownlink ¶
func (x *TrafficUserStat) GetDownlink() int64
func (*TrafficUserStat) GetUplink ¶
func (x *TrafficUserStat) GetUplink() int64
func (*TrafficUserStat) ProtoMessage ¶
func (*TrafficUserStat) ProtoMessage()
func (*TrafficUserStat) ProtoReflect ¶
func (x *TrafficUserStat) ProtoReflect() protoreflect.Message
func (*TrafficUserStat) Reset ¶
func (x *TrafficUserStat) Reset()
func (*TrafficUserStat) String ¶
func (x *TrafficUserStat) String() string
type UnimplementedStatsServiceServer ¶
type UnimplementedStatsServiceServer struct{}
UnimplementedStatsServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedStatsServiceServer) GetAllOnlineUsers ¶
func (UnimplementedStatsServiceServer) GetAllOnlineUsers(context.Context, *GetAllOnlineUsersRequest) (*GetAllOnlineUsersResponse, error)
func (UnimplementedStatsServiceServer) GetStats ¶
func (UnimplementedStatsServiceServer) GetStats(context.Context, *GetStatsRequest) (*GetStatsResponse, error)
func (UnimplementedStatsServiceServer) GetStatsOnline ¶
func (UnimplementedStatsServiceServer) GetStatsOnline(context.Context, *GetStatsRequest) (*GetStatsResponse, error)
func (UnimplementedStatsServiceServer) GetStatsOnlineIpList ¶
func (UnimplementedStatsServiceServer) GetStatsOnlineIpList(context.Context, *GetStatsRequest) (*GetStatsOnlineIpListResponse, error)
func (UnimplementedStatsServiceServer) GetSysStats ¶
func (UnimplementedStatsServiceServer) GetSysStats(context.Context, *SysStatsRequest) (*SysStatsResponse, error)
func (UnimplementedStatsServiceServer) GetUsersStats ¶
func (UnimplementedStatsServiceServer) GetUsersStats(context.Context, *GetUsersStatsRequest) (*GetUsersStatsResponse, error)
func (UnimplementedStatsServiceServer) QueryStats ¶
func (UnimplementedStatsServiceServer) QueryStats(context.Context, *QueryStatsRequest) (*QueryStatsResponse, error)
type UnsafeStatsServiceServer ¶
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.
type UserStat ¶
type UserStat struct {
Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
Ips []*OnlineIPEntry `protobuf:"bytes,2,rep,name=ips,proto3" json:"ips,omitempty"`
Traffic *TrafficUserStat `protobuf:"bytes,3,opt,name=traffic,proto3" json:"traffic,omitempty"`
// contains filtered or unexported fields
}
func (*UserStat) Descriptor
deprecated
func (*UserStat) GetIps ¶
func (x *UserStat) GetIps() []*OnlineIPEntry
func (*UserStat) GetTraffic ¶
func (x *UserStat) GetTraffic() *TrafficUserStat
func (*UserStat) ProtoMessage ¶
func (*UserStat) ProtoMessage()
func (*UserStat) ProtoReflect ¶
func (x *UserStat) ProtoReflect() protoreflect.Message