Documentation ¶
Index ¶
Constants ¶
const (
ErrorService_Codes_FullMethodName = "/lava.service.ErrorService/Codes"
)
Variables ¶
var ErrorService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "lava.service.ErrorService", HandlerType: (*ErrorServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Codes", Handler: _ErrorService_Codes_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "lava/services/errcode/api.proto", }
ErrorService_ServiceDesc is the grpc.ServiceDesc for ErrorService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_lava_services_errcode_api_proto protoreflect.FileDescriptor
Functions ¶
func RegisterErrorServiceServer ¶
func RegisterErrorServiceServer(s grpc.ServiceRegistrar, srv ErrorServiceServer)
Types ¶
type ErrCodes ¶
type ErrCodes struct { Codes []*errorpb.ErrCode `protobuf:"bytes,1,rep,name=codes,proto3" json:"codes,omitempty"` // contains filtered or unexported fields }
func (*ErrCodes) Descriptor
deprecated
func (*ErrCodes) ProtoMessage ¶
func (*ErrCodes) ProtoMessage()
func (*ErrCodes) ProtoReflect ¶
func (x *ErrCodes) ProtoReflect() protoreflect.Message
type ErrorServiceClient ¶
type ErrorServiceClient interface {
Codes(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ErrCodes, error)
}
ErrorServiceClient is the client API for ErrorService 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 NewErrorServiceClient ¶
func NewErrorServiceClient(cc grpc.ClientConnInterface) ErrorServiceClient
type ErrorServiceServer ¶
ErrorServiceServer is the server API for ErrorService service. All implementations should embed UnimplementedErrorServiceServer for forward compatibility.
type UnimplementedErrorServiceServer ¶
type UnimplementedErrorServiceServer struct{}
UnimplementedErrorServiceServer should be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
type UnsafeErrorServiceServer ¶
type UnsafeErrorServiceServer interface {
// contains filtered or unexported methods
}
UnsafeErrorServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ErrorServiceServer will result in compilation errors.