Documentation ¶
Index ¶
- Constants
- Variables
- type Builder
- type ClientCodec
- type Error
- type Label
- type Request
- func (*Request) Descriptor() ([]byte, []int)deprecated
- func (x *Request) GetArgs() [][]byte
- func (x *Request) GetID() uint64
- func (x *Request) GetLabels() []*Label
- func (x *Request) GetMethod() string
- func (x *Request) GetService() string
- func (*Request) ProtoMessage()
- func (x *Request) ProtoReflect() protoreflect.Message
- func (x *Request) Reset()
- func (x *Request) String() string
- type Response
- func (*Response) Descriptor() ([]byte, []int)deprecated
- func (x *Response) GetError() *Error
- func (x *Response) GetID() uint64
- func (x *Response) GetResult() []byte
- func (*Response) ProtoMessage()
- func (x *Response) ProtoReflect() protoreflect.Message
- func (x *Response) Reset()
- func (x *Response) String() string
- type ServerCodec
Constants ¶
View Source
const ( PkgName = "auxo.net.rpc.codec.proto" DefaultMaxMessageSize = 2 << 20 )
Variables ¶
View Source
var File_msg_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ClientCodec ¶
func (*ClientCodec) DecodeHead ¶
func (c *ClientCodec) DecodeHead(head *rpc.ResponseHead) error
func (*ClientCodec) DecodeResult ¶
func (c *ClientCodec) DecodeResult(result *rpc.Result) (err error)
func (*ClientCodec) DiscardResult ¶
func (*ClientCodec) DiscardResult() error
type Error ¶
type Error struct { Code *int32 `protobuf:"varint,1,opt,name=Code,proto3,oneof" json:"Code,omitempty"` Message *string `protobuf:"bytes,2,opt,name=Message,proto3,oneof" json:"Message,omitempty"` Detail *string `protobuf:"bytes,3,opt,name=Detail,proto3,oneof" json:"Detail,omitempty"` // contains filtered or unexported fields }
func (*Error) Descriptor
deprecated
func (*Error) GetMessage ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶
func (x *Error) ProtoReflect() protoreflect.Message
type Label ¶
type Label struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` Value string `protobuf:"bytes,2,opt,name=Value,proto3" json:"Value,omitempty"` // contains filtered or unexported fields }
func (*Label) Descriptor
deprecated
func (*Label) ProtoMessage ¶
func (*Label) ProtoMessage()
func (*Label) ProtoReflect ¶
func (x *Label) ProtoReflect() protoreflect.Message
type Request ¶
type Request struct { ID *uint64 `protobuf:"varint,1,opt,name=ID,proto3,oneof" json:"ID,omitempty"` Service *string `protobuf:"bytes,2,opt,name=Service,proto3,oneof" json:"Service,omitempty"` Method *string `protobuf:"bytes,3,opt,name=Method,proto3,oneof" json:"Method,omitempty"` Labels []*Label `protobuf:"bytes,4,rep,name=Labels,proto3" json:"Labels,omitempty"` Args [][]byte `protobuf:"bytes,5,rep,name=Args,proto3" json:"Args,omitempty"` // contains filtered or unexported fields }
func (*Request) Descriptor
deprecated
func (*Request) GetService ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct { ID *uint64 `protobuf:"varint,1,opt,name=ID,proto3,oneof" json:"ID,omitempty"` Result []byte `protobuf:"bytes,2,opt,name=Result,proto3,oneof" json:"Result,omitempty"` Error *Error `protobuf:"bytes,3,opt,name=Error,proto3,oneof" json:"Error,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type ServerCodec ¶
func (*ServerCodec) DecodeArgs ¶
func (c *ServerCodec) DecodeArgs(args []interface{}) error
func (*ServerCodec) DecodeHead ¶
func (c *ServerCodec) DecodeHead(head *rpc.RequestHead) error
func (*ServerCodec) DiscardArgs ¶
func (*ServerCodec) DiscardArgs() error
Click to show internal directories.
Click to hide internal directories.