errcodepb

package
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorService_Codes_FullMethodName = "/lava.service.ErrorService/Codes"
)

Variables

View Source
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: "proto/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)

View Source
var File_proto_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) Descriptor() ([]byte, []int)

Deprecated: Use ErrCodes.ProtoReflect.Descriptor instead.

func (*ErrCodes) GetCodes

func (x *ErrCodes) GetCodes() []*errorpb.ErrCode

func (*ErrCodes) ProtoMessage

func (*ErrCodes) ProtoMessage()

func (*ErrCodes) ProtoReflect

func (x *ErrCodes) ProtoReflect() protoreflect.Message

func (*ErrCodes) Reset

func (x *ErrCodes) Reset()

func (*ErrCodes) String

func (x *ErrCodes) String() string

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.

type ErrorServiceServer

type ErrorServiceServer interface {
	Codes(context.Context, *emptypb.Empty) (*ErrCodes, error)
}

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.

func (UnimplementedErrorServiceServer) Codes

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.

Jump to

Keyboard shortcuts

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