Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterStatsServiceServer(s grpc.ServiceRegistrar, srv StatsServiceServer)
- type GetStatsRequest
- func (*GetStatsRequest) Descriptor() ([]byte, []int)deprecated
- func (*GetStatsRequest) ProtoMessage()
- func (x *GetStatsRequest) ProtoReflect() protoreflect.Message
- func (x *GetStatsRequest) Reset()
- func (m *GetStatsRequest) Sanitize() error
- func (x *GetStatsRequest) String() string
- func (m *GetStatsRequest) Validate() error
- func (m *GetStatsRequest) ValidateAll() error
- type GetStatsRequestMultiError
- type GetStatsRequestValidationError
- func (e GetStatsRequestValidationError) Cause() error
- func (e GetStatsRequestValidationError) Error() string
- func (e GetStatsRequestValidationError) ErrorName() string
- func (e GetStatsRequestValidationError) Field() string
- func (e GetStatsRequestValidationError) Key() bool
- func (e GetStatsRequestValidationError) Reason() string
- type GetStatsResponse
- func (*GetStatsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetStatsResponse) GetStats() map[string]*stats.Stat
- func (*GetStatsResponse) ProtoMessage()
- func (x *GetStatsResponse) ProtoReflect() protoreflect.Message
- func (x *GetStatsResponse) Reset()
- func (m *GetStatsResponse) Sanitize() error
- func (x *GetStatsResponse) String() string
- func (m *GetStatsResponse) Validate() error
- func (m *GetStatsResponse) ValidateAll() error
- type GetStatsResponseMultiError
- type GetStatsResponseValidationError
- func (e GetStatsResponseValidationError) Cause() error
- func (e GetStatsResponseValidationError) Error() string
- func (e GetStatsResponseValidationError) ErrorName() string
- func (e GetStatsResponseValidationError) Field() string
- func (e GetStatsResponseValidationError) Key() bool
- func (e GetStatsResponseValidationError) Reason() string
- type Params
- type Server
- type Stats
- type StatsServiceClient
- type StatsServiceServer
- type UnimplementedStatsServiceServer
- type UnsafeStatsServiceServer
Constants ¶
const (
StatsService_GetStats_FullMethodName = "/services.stats.StatsService/GetStats"
)
Variables ¶
var File_services_stats_stats_proto protoreflect.FileDescriptor
var StatsService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "services.stats.StatsService", HandlerType: (*StatsServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetStats", Handler: _StatsService_GetStats_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "services/stats/stats.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 GetStatsRequest ¶
type GetStatsRequest struct {
// contains filtered or unexported fields
}
func (*GetStatsRequest) Descriptor
deprecated
func (*GetStatsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetStatsRequest.ProtoReflect.Descriptor instead.
func (*GetStatsRequest) ProtoMessage ¶
func (*GetStatsRequest) ProtoMessage()
func (*GetStatsRequest) ProtoReflect ¶
func (x *GetStatsRequest) ProtoReflect() protoreflect.Message
func (*GetStatsRequest) Reset ¶
func (x *GetStatsRequest) Reset()
func (*GetStatsRequest) Sanitize ¶ added in v0.9.4
func (m *GetStatsRequest) Sanitize() error
func (*GetStatsRequest) String ¶
func (x *GetStatsRequest) String() string
func (*GetStatsRequest) Validate ¶
func (m *GetStatsRequest) Validate() error
Validate checks the field values on GetStatsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetStatsRequest) ValidateAll ¶
func (m *GetStatsRequest) ValidateAll() error
ValidateAll checks the field values on GetStatsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetStatsRequestMultiError, or nil if none found.
type GetStatsRequestMultiError ¶
type GetStatsRequestMultiError []error
GetStatsRequestMultiError is an error wrapping multiple validation errors returned by GetStatsRequest.ValidateAll() if the designated constraints aren't met.
func (GetStatsRequestMultiError) AllErrors ¶
func (m GetStatsRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetStatsRequestMultiError) Error ¶
func (m GetStatsRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetStatsRequestValidationError ¶
type GetStatsRequestValidationError struct {
// contains filtered or unexported fields
}
GetStatsRequestValidationError is the validation error returned by GetStatsRequest.Validate if the designated constraints aren't met.
func (GetStatsRequestValidationError) Cause ¶
func (e GetStatsRequestValidationError) Cause() error
Cause function returns cause value.
func (GetStatsRequestValidationError) Error ¶
func (e GetStatsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetStatsRequestValidationError) ErrorName ¶
func (e GetStatsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetStatsRequestValidationError) Field ¶
func (e GetStatsRequestValidationError) Field() string
Field function returns field value.
func (GetStatsRequestValidationError) Key ¶
func (e GetStatsRequestValidationError) Key() bool
Key function returns key value.
func (GetStatsRequestValidationError) Reason ¶
func (e GetStatsRequestValidationError) Reason() string
Reason function returns reason value.
type GetStatsResponse ¶
type GetStatsResponse struct { Stats map[string]*stats.Stat `` /* 151-byte string literal not displayed */ // contains filtered or unexported fields }
func (*GetStatsResponse) Descriptor
deprecated
func (*GetStatsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetStatsResponse.ProtoReflect.Descriptor instead.
func (*GetStatsResponse) ProtoMessage ¶
func (*GetStatsResponse) ProtoMessage()
func (*GetStatsResponse) ProtoReflect ¶
func (x *GetStatsResponse) ProtoReflect() protoreflect.Message
func (*GetStatsResponse) Reset ¶
func (x *GetStatsResponse) Reset()
func (*GetStatsResponse) Sanitize ¶ added in v0.9.4
func (m *GetStatsResponse) Sanitize() error
func (*GetStatsResponse) String ¶
func (x *GetStatsResponse) String() string
func (*GetStatsResponse) Validate ¶
func (m *GetStatsResponse) Validate() error
Validate checks the field values on GetStatsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetStatsResponse) ValidateAll ¶
func (m *GetStatsResponse) ValidateAll() error
ValidateAll checks the field values on GetStatsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetStatsResponseMultiError, or nil if none found.
type GetStatsResponseMultiError ¶
type GetStatsResponseMultiError []error
GetStatsResponseMultiError is an error wrapping multiple validation errors returned by GetStatsResponse.ValidateAll() if the designated constraints aren't met.
func (GetStatsResponseMultiError) AllErrors ¶
func (m GetStatsResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetStatsResponseMultiError) Error ¶
func (m GetStatsResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetStatsResponseValidationError ¶
type GetStatsResponseValidationError struct {
// contains filtered or unexported fields
}
GetStatsResponseValidationError is the validation error returned by GetStatsResponse.Validate if the designated constraints aren't met.
func (GetStatsResponseValidationError) Cause ¶
func (e GetStatsResponseValidationError) Cause() error
Cause function returns cause value.
func (GetStatsResponseValidationError) Error ¶
func (e GetStatsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetStatsResponseValidationError) ErrorName ¶
func (e GetStatsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetStatsResponseValidationError) Field ¶
func (e GetStatsResponseValidationError) Field() string
Field function returns field value.
func (GetStatsResponseValidationError) Key ¶
func (e GetStatsResponseValidationError) Key() bool
Key function returns key value.
func (GetStatsResponseValidationError) Reason ¶
func (e GetStatsResponseValidationError) Reason() string
Reason function returns reason value.
type Server ¶
type Server struct { StatsServiceServer // contains filtered or unexported fields }
func (*Server) GetStats ¶
func (s *Server) GetStats(ctx context.Context, req *GetStatsRequest) (*GetStatsResponse, error)
func (*Server) PermissionUnaryFuncOverride ¶
func (*Server) RegisterServer ¶
type StatsServiceClient ¶
type StatsServiceClient interface {
GetStats(ctx context.Context, in *GetStatsRequest, opts ...grpc.CallOption) (*GetStatsResponse, 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
func NewTestStatsServiceClient ¶
func NewTestStatsServiceClient(srv StatsServiceServer) (StatsServiceClient, context.Context, context.CancelFunc)
type StatsServiceServer ¶
type StatsServiceServer interface { GetStats(context.Context, *GetStatsRequest) (*GetStatsResponse, error) // contains filtered or unexported methods }
StatsServiceServer is the server API for StatsService service. All implementations must embed UnimplementedStatsServiceServer for forward compatibility
type UnimplementedStatsServiceServer ¶
type UnimplementedStatsServiceServer struct { }
UnimplementedStatsServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedStatsServiceServer) GetStats ¶
func (UnimplementedStatsServiceServer) GetStats(context.Context, *GetStatsRequest) (*GetStatsResponse, 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.