Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_pb_hello_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type HelloService ¶
通过这个接口约束客户端的调用和服务端的实现 只要该接口公开, 是不是对于client 就完全知道该如何使用该RPC client.Greet("alice", &resp) 发送的数据结构就是实现了Protobuf编解码的对象
type Request ¶
type Request struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Request) Descriptor
deprecated
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,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
Click to show internal directories.
Click to hide internal directories.