error

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 8 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
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)

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

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetError

func (x *Error) GetError() string

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect

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

func (*Error) Reset

func (x *Error) Reset()

func (*Error) String

func (x *Error) String() string

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

Deprecated: Use Errors.ProtoReflect.Descriptor instead.

func (*Errors) GetErrors

func (x *Errors) GetErrors() []*Error

func (*Errors) ProtoMessage

func (*Errors) ProtoMessage()

func (*Errors) ProtoReflect

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

func (*Errors) Reset

func (x *Errors) Reset()

func (*Errors) String

func (x *Errors) String() string

type UnimplementedErorrSvcServer

type UnimplementedErorrSvcServer struct {
}

UnimplementedErorrSvcServer must be embedded to have forward compatible implementations.

func (UnimplementedErorrSvcServer) GetErrors

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.

Jump to

Keyboard shortcuts

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