Documentation ¶
Index ¶
- Constants
- 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
- func (*StatusReply) Descriptor() ([]byte, []int)deprecated
- func (*StatusReply) ProtoMessage()
- func (x *StatusReply) ProtoReflect() protoreflect.Message
- func (x *StatusReply) Reset()
- func (x *StatusReply) String() string
- func (m *StatusReply) Validate() error
- func (m *StatusReply) ValidateAll() error
- type StatusReplyMultiError
- 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
- func (*StatusRequest) Descriptor() ([]byte, []int)deprecated
- func (*StatusRequest) ProtoMessage()
- func (x *StatusRequest) ProtoReflect() protoreflect.Message
- func (x *StatusRequest) Reset()
- func (x *StatusRequest) String() string
- func (m *StatusRequest) Validate() error
- func (m *StatusRequest) ValidateAll() error
- type StatusRequestMultiError
- 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 ¶
const OperationStatusStatus = "/status.Status/Status"
const (
Status_Status_FullMethodName = "/status.Status/Status"
)
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, the first error encountered is returned, or nil if there are no violations.
func (*StatusReply) ValidateAll ¶ added in v0.0.8
func (m *StatusReply) ValidateAll() error
ValidateAll checks the field values on StatusReply 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 StatusReplyMultiError, or nil if none found.
type StatusReplyMultiError ¶ added in v0.0.8
type StatusReplyMultiError []error
StatusReplyMultiError is an error wrapping multiple validation errors returned by StatusReply.ValidateAll() if the designated constraints aren't met.
func (StatusReplyMultiError) AllErrors ¶ added in v0.0.8
func (m StatusReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (StatusReplyMultiError) Error ¶ added in v0.0.8
func (m StatusReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
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, the first error encountered is returned, or nil if there are no violations.
func (*StatusRequest) ValidateAll ¶ added in v0.0.8
func (m *StatusRequest) ValidateAll() error
ValidateAll checks the field values on StatusRequest 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 StatusRequestMultiError, or nil if none found.
type StatusRequestMultiError ¶ added in v0.0.8
type StatusRequestMultiError []error
StatusRequestMultiError is an error wrapping multiple validation errors returned by StatusRequest.ValidateAll() if the designated constraints aren't met.
func (StatusRequestMultiError) AllErrors ¶ added in v0.0.8
func (m StatusRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (StatusRequestMultiError) Error ¶ added in v0.0.8
func (m StatusRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
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.