Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErorrSvc_ServiceDesc = grpc.ServiceDesc{ ServiceName: "ErorrSvc", HandlerType: (*ErorrSvcServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetErrors", Handler: _ErorrSvc_GetErrors_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "error.proto", }
ErorrSvc_ServiceDesc is the grpc.ServiceDesc for ErorrSvc service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_error_proto protoreflect.FileDescriptor
Functions ¶
func RegisterErorrSvcServer ¶
func RegisterErorrSvcServer(s grpc.ServiceRegistrar, srv ErorrSvcServer)
Types ¶
type ErorrSvcClient ¶
type ErorrSvcClient interface {
GetErrors(ctx context.Context, in *ErrorRequest, opts ...grpc.CallOption) (*Errors, error)
}
ErorrSvcClient is the client API for ErorrSvc 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 NewErorrSvcClient ¶
func NewErorrSvcClient(cc grpc.ClientConnInterface) ErorrSvcClient
type ErorrSvcServer ¶
type ErorrSvcServer interface { GetErrors(context.Context, *ErrorRequest) (*Errors, error) // contains filtered or unexported methods }
ErorrSvcServer is the server API for ErorrSvc service. All implementations must embed UnimplementedErorrSvcServer for forward compatibility
type Error ¶
type Error struct { Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*Error) Descriptor
deprecated
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶
func (x *Error) ProtoReflect() protoreflect.Message
type ErrorRequest ¶
type ErrorRequest struct {
// contains filtered or unexported fields
}
func (*ErrorRequest) Descriptor
deprecated
func (*ErrorRequest) Descriptor() ([]byte, []int)
Deprecated: Use ErrorRequest.ProtoReflect.Descriptor instead.
func (*ErrorRequest) ProtoMessage ¶
func (*ErrorRequest) ProtoMessage()
func (*ErrorRequest) ProtoReflect ¶
func (x *ErrorRequest) ProtoReflect() protoreflect.Message
func (*ErrorRequest) Reset ¶
func (x *ErrorRequest) Reset()
func (*ErrorRequest) String ¶
func (x *ErrorRequest) String() string
type Errors ¶
type Errors struct { Errors []*Error `protobuf:"bytes,1,rep,name=errors,proto3" json:"errors,omitempty"` // contains filtered or unexported fields }
func (*Errors) Descriptor
deprecated
func (*Errors) ProtoMessage ¶
func (*Errors) ProtoMessage()
func (*Errors) ProtoReflect ¶
func (x *Errors) ProtoReflect() protoreflect.Message
type UnimplementedErorrSvcServer ¶
type UnimplementedErorrSvcServer struct { }
UnimplementedErorrSvcServer must be embedded to have forward compatible implementations.
func (UnimplementedErorrSvcServer) GetErrors ¶
func (UnimplementedErorrSvcServer) GetErrors(context.Context, *ErrorRequest) (*Errors, error)
type UnsafeErorrSvcServer ¶
type UnsafeErorrSvcServer interface {
// contains filtered or unexported methods
}
UnsafeErorrSvcServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ErorrSvcServer will result in compilation errors.