Documentation ¶
Index ¶
- func RegisterWaiterServer(s *grpc.Server, srv WaiterServer)
- type Req
- func (*Req) Descriptor() ([]byte, []int)
- func (m *Req) GetJsonStr() string
- func (*Req) ProtoMessage()
- func (m *Req) Reset()
- func (m *Req) String() string
- func (m *Req) XXX_DiscardUnknown()
- func (m *Req) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Req) XXX_Merge(src proto.Message)
- func (m *Req) XXX_Size() int
- func (m *Req) XXX_Unmarshal(b []byte) error
- type Res
- func (*Res) Descriptor() ([]byte, []int)
- func (m *Res) GetBackJson() string
- func (*Res) ProtoMessage()
- func (m *Res) Reset()
- func (m *Res) String() string
- func (m *Res) XXX_DiscardUnknown()
- func (m *Res) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Res) XXX_Merge(src proto.Message)
- func (m *Res) XXX_Size() int
- func (m *Res) XXX_Unmarshal(b []byte) error
- type WaiterClient
- type WaiterServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterWaiterServer ¶
func RegisterWaiterServer(s *grpc.Server, srv WaiterServer)
Types ¶
type Req ¶
type Req struct { // 类型 字段 = 标识号 JsonStr string `protobuf:"bytes,1,opt,name=jsonStr,proto3" json:"jsonStr,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
定义 Req 消息结构
func (*Req) Descriptor ¶
func (*Req) GetJsonStr ¶
func (*Req) ProtoMessage ¶
func (*Req) ProtoMessage()
func (*Req) XXX_DiscardUnknown ¶
func (m *Req) XXX_DiscardUnknown()
func (*Req) XXX_Unmarshal ¶
type Res ¶
type Res struct { BackJson string `protobuf:"bytes,1,opt,name=backJson,proto3" json:"backJson,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
定义 Res 消息结构
func (*Res) Descriptor ¶
func (*Res) GetBackJson ¶
func (*Res) ProtoMessage ¶
func (*Res) ProtoMessage()
func (*Res) XXX_DiscardUnknown ¶
func (m *Res) XXX_DiscardUnknown()
func (*Res) XXX_Unmarshal ¶
type WaiterClient ¶
type WaiterClient interface { // 定义接口 (结构体可以复用) // 方法 (请求消息结构体) returns (返回消息结构体) {} DoMD5(ctx context.Context, in *Req, opts ...grpc.CallOption) (*Res, error) }
WaiterClient is the client API for Waiter service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewWaiterClient ¶
func NewWaiterClient(cc *grpc.ClientConn) WaiterClient
Click to show internal directories.
Click to hide internal directories.