Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterStatsServiceServer ¶
func RegisterStatsServiceServer(s *grpc.Server, srv StatsServiceServer)
Types ¶
type Config ¶
type Config struct { }
type GetStatsRequest ¶
type GetStatsRequest struct { // Name of the stat counter. Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` // Whether or not to reset the counter to fetching its value. Reset_ bool `protobuf:"varint,2,opt,name=reset" json:"reset,omitempty"` }
func (*GetStatsRequest) Descriptor ¶
func (*GetStatsRequest) Descriptor() ([]byte, []int)
func (*GetStatsRequest) GetName ¶
func (m *GetStatsRequest) GetName() string
func (*GetStatsRequest) GetReset_ ¶
func (m *GetStatsRequest) GetReset_() bool
func (*GetStatsRequest) ProtoMessage ¶
func (*GetStatsRequest) ProtoMessage()
func (*GetStatsRequest) Reset ¶
func (m *GetStatsRequest) Reset()
func (*GetStatsRequest) String ¶
func (m *GetStatsRequest) String() string
type GetStatsResponse ¶
type GetStatsResponse struct {
Stat *Stat `protobuf:"bytes,1,opt,name=stat" json:"stat,omitempty"`
}
func (*GetStatsResponse) Descriptor ¶
func (*GetStatsResponse) Descriptor() ([]byte, []int)
func (*GetStatsResponse) GetStat ¶
func (m *GetStatsResponse) GetStat() *Stat
func (*GetStatsResponse) ProtoMessage ¶
func (*GetStatsResponse) ProtoMessage()
func (*GetStatsResponse) Reset ¶
func (m *GetStatsResponse) Reset()
func (*GetStatsResponse) String ¶
func (m *GetStatsResponse) String() string
type Stat ¶
type StatsServiceClient ¶
type StatsServiceClient interface {
GetStats(ctx context.Context, in *GetStatsRequest, opts ...grpc.CallOption) (*GetStatsResponse, error)
}
func NewStatsServiceClient ¶
func NewStatsServiceClient(cc *grpc.ClientConn) StatsServiceClient
type StatsServiceServer ¶
type StatsServiceServer interface {
GetStats(context.Context, *GetStatsRequest) (*GetStatsResponse, error)
}
Click to show internal directories.
Click to hide internal directories.