Documentation ¶
Index ¶
- Variables
- func RegisterStatusHTTPServer(s *http.Server, srv StatusHTTPServer)
- func RegisterStatusServer(s grpc.ServiceRegistrar, srv StatusServer)
- type StatusClient
- type StatusHTTPClient
- type StatusHTTPClientImpl
- type StatusHTTPServer
- type StatusReply
- type StatusReplyValidationError
- func (e StatusReplyValidationError) Cause() error
- func (e StatusReplyValidationError) Error() string
- func (e StatusReplyValidationError) ErrorName() string
- func (e StatusReplyValidationError) Field() string
- func (e StatusReplyValidationError) Key() bool
- func (e StatusReplyValidationError) Reason() string
- type StatusRequest
- type StatusRequestValidationError
- func (e StatusRequestValidationError) Cause() error
- func (e StatusRequestValidationError) Error() string
- func (e StatusRequestValidationError) ErrorName() string
- func (e StatusRequestValidationError) Field() string
- func (e StatusRequestValidationError) Key() bool
- func (e StatusRequestValidationError) Reason() string
- type StatusServer
- type StatusService
- type UnimplementedStatusServer
- type UnsafeStatusServer
Constants ¶
This section is empty.
Variables ¶
var File_api_status_status_proto protoreflect.FileDescriptor
var Status_ServiceDesc = grpc.ServiceDesc{ ServiceName: "status.Status", HandlerType: (*StatusServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Status", Handler: _Status_Status_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/status/status.proto", }
Status_ServiceDesc is the grpc.ServiceDesc for Status service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterStatusHTTPServer ¶
func RegisterStatusHTTPServer(s *http.Server, srv StatusHTTPServer)
func RegisterStatusServer ¶
func RegisterStatusServer(s grpc.ServiceRegistrar, srv StatusServer)
Types ¶
type StatusClient ¶
type StatusClient interface {
Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusReply, error)
}
StatusClient is the client API for Status 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 NewStatusClient ¶
func NewStatusClient(cc grpc.ClientConnInterface) StatusClient
type StatusHTTPClient ¶
type StatusHTTPClient interface {
Status(ctx context.Context, req *StatusRequest, opts ...http.CallOption) (rsp *StatusReply, err error)
}
func NewStatusHTTPClient ¶
func NewStatusHTTPClient(client *http.Client) StatusHTTPClient
type StatusHTTPClientImpl ¶
type StatusHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*StatusHTTPClientImpl) Status ¶
func (c *StatusHTTPClientImpl) Status(ctx context.Context, in *StatusRequest, opts ...http.CallOption) (*StatusReply, error)
type StatusHTTPServer ¶
type StatusHTTPServer interface {
Status(context.Context, *StatusRequest) (*StatusReply, error)
}
type StatusReply ¶
type StatusReply struct {
// contains filtered or unexported fields
}
func (*StatusReply) Descriptor
deprecated
func (*StatusReply) Descriptor() ([]byte, []int)
Deprecated: Use StatusReply.ProtoReflect.Descriptor instead.
func (*StatusReply) ProtoMessage ¶
func (*StatusReply) ProtoMessage()
func (*StatusReply) ProtoReflect ¶
func (x *StatusReply) ProtoReflect() protoreflect.Message
func (*StatusReply) Reset ¶
func (x *StatusReply) Reset()
func (*StatusReply) String ¶
func (x *StatusReply) String() string
func (*StatusReply) Validate ¶
func (m *StatusReply) Validate() error
Validate checks the field values on StatusReply with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type StatusReplyValidationError ¶
type StatusReplyValidationError struct {
// contains filtered or unexported fields
}
StatusReplyValidationError is the validation error returned by StatusReply.Validate if the designated constraints aren't met.
func (StatusReplyValidationError) Cause ¶
func (e StatusReplyValidationError) Cause() error
Cause function returns cause value.
func (StatusReplyValidationError) Error ¶
func (e StatusReplyValidationError) Error() string
Error satisfies the builtin error interface
func (StatusReplyValidationError) ErrorName ¶
func (e StatusReplyValidationError) ErrorName() string
ErrorName returns error name.
func (StatusReplyValidationError) Field ¶
func (e StatusReplyValidationError) Field() string
Field function returns field value.
func (StatusReplyValidationError) Key ¶
func (e StatusReplyValidationError) Key() bool
Key function returns key value.
func (StatusReplyValidationError) Reason ¶
func (e StatusReplyValidationError) Reason() string
Reason function returns reason value.
type StatusRequest ¶
type StatusRequest struct {
// contains filtered or unexported fields
}
func (*StatusRequest) Descriptor
deprecated
func (*StatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use StatusRequest.ProtoReflect.Descriptor instead.
func (*StatusRequest) ProtoMessage ¶
func (*StatusRequest) ProtoMessage()
func (*StatusRequest) ProtoReflect ¶
func (x *StatusRequest) ProtoReflect() protoreflect.Message
func (*StatusRequest) Reset ¶
func (x *StatusRequest) Reset()
func (*StatusRequest) String ¶
func (x *StatusRequest) String() string
func (*StatusRequest) Validate ¶
func (m *StatusRequest) Validate() error
Validate checks the field values on StatusRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type StatusRequestValidationError ¶
type StatusRequestValidationError struct {
// contains filtered or unexported fields
}
StatusRequestValidationError is the validation error returned by StatusRequest.Validate if the designated constraints aren't met.
func (StatusRequestValidationError) Cause ¶
func (e StatusRequestValidationError) Cause() error
Cause function returns cause value.
func (StatusRequestValidationError) Error ¶
func (e StatusRequestValidationError) Error() string
Error satisfies the builtin error interface
func (StatusRequestValidationError) ErrorName ¶
func (e StatusRequestValidationError) ErrorName() string
ErrorName returns error name.
func (StatusRequestValidationError) Field ¶
func (e StatusRequestValidationError) Field() string
Field function returns field value.
func (StatusRequestValidationError) Key ¶
func (e StatusRequestValidationError) Key() bool
Key function returns key value.
func (StatusRequestValidationError) Reason ¶
func (e StatusRequestValidationError) Reason() string
Reason function returns reason value.
type StatusServer ¶
type StatusServer interface { Status(context.Context, *StatusRequest) (*StatusReply, error) // contains filtered or unexported methods }
StatusServer is the server API for Status service. All implementations must embed UnimplementedStatusServer for forward compatibility
type StatusService ¶
type StatusService struct {
UnimplementedStatusServer
}
func NewStatusService ¶
func NewStatusService() *StatusService
func (*StatusService) Status ¶
func (s *StatusService) Status(context.Context, *StatusRequest) (*StatusReply, error)
type UnimplementedStatusServer ¶
type UnimplementedStatusServer struct { }
UnimplementedStatusServer must be embedded to have forward compatible implementations.
func (UnimplementedStatusServer) Status ¶
func (UnimplementedStatusServer) Status(context.Context, *StatusRequest) (*StatusReply, error)
type UnsafeStatusServer ¶
type UnsafeStatusServer interface {
// contains filtered or unexported methods
}
UnsafeStatusServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StatusServer will result in compilation errors.