Documentation ¶
Index ¶
- type Client
- type Codec
- type LazyMessageReflect
- type Message
- func (m *Message) Base64() string
- func (m *Message) Bytes() []byte
- func (m *Message) FromBase64(b64 string) (lm *Message, err error)
- func (m *Message) FromBytes(buf []byte) *Message
- func (m *Message) FromMessage(msg proto.Message) (*Message, error)
- func (m *Message) ProtoMessage()
- func (m *Message) ProtoReflect() protoreflect.Message
- func (m *Message) Reset()
- func (m *Message) String() string
- type MethodDesc
- type Stream
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(cc *grpc.ClientConn) *Client
func (*Client) InvokeStream ¶
func (lc *Client) InvokeStream(ctx context.Context, desc *MethodDesc, in *Message, copts ...grpc.CallOption) (*Stream, error)
func (*Client) InvokeUnary ¶
func (lc *Client) InvokeUnary(ctx context.Context, desc *MethodDesc, in *Message, copts ...grpc.CallOption) (out *Message, err error)
type Codec ¶
type Codec struct{}
Codec is basically a no-op grpc.Codec use to pass LazyMessage through grpc
type LazyMessageReflect ¶
type LazyMessageReflect *Message
type Message ¶
type Message struct {
// contains filtered or unexported fields
}
Message is basically a no-op `proto.Message` used to pass serialized message through grpc
func NewMessage ¶
func NewMessage() *Message
func (*Message) ProtoMessage ¶
func (m *Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (m *Message) ProtoReflect() protoreflect.Message
ProtoReflect is not usefull with LazyMessage
type MethodDesc ¶
type Stream ¶
type Stream struct { // used to close the stream context.CancelFunc grpc.ClientStream // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.