status

package
v0.0.39 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const OperationStatusStatus = "/status.Status/Status"

Variables

View Source
var File_api_status_status_proto protoreflect.FileDescriptor
View Source
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

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

Cause function returns cause value.

func (StatusReplyValidationError) Error

Error satisfies the builtin error interface

func (StatusReplyValidationError) ErrorName

func (e StatusReplyValidationError) ErrorName() string

ErrorName returns error name.

func (StatusReplyValidationError) Field

Field function returns field value.

func (StatusReplyValidationError) Key

Key function returns key value.

func (StatusReplyValidationError) Reason

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

Cause function returns cause value.

func (StatusRequestValidationError) Error

Error satisfies the builtin error interface

func (StatusRequestValidationError) ErrorName

func (e StatusRequestValidationError) ErrorName() string

ErrorName returns error name.

func (StatusRequestValidationError) Field

Field function returns field value.

func (StatusRequestValidationError) Key

Key function returns key value.

func (StatusRequestValidationError) Reason

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

type UnimplementedStatusServer

type UnimplementedStatusServer struct {
}

UnimplementedStatusServer must be embedded to have forward compatible implementations.

func (UnimplementedStatusServer) Status

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL