Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterEchoServer(s *grpc.Server, srv EchoServer)
- type EchoClient
- type EchoServer
- type NullReq
- func (*NullReq) Descriptor() ([]byte, []int)
- func (m *NullReq) Marshal() (dAtA []byte, err error)
- func (m *NullReq) MarshalTo(dAtA []byte) (int, error)
- func (m *NullReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*NullReq) ProtoMessage()
- func (m *NullReq) Reset()
- func (m *NullReq) Size() (n int)
- func (m *NullReq) String() string
- func (m *NullReq) Unmarshal(dAtA []byte) error
- func (m *NullReq) XXX_DiscardUnknown()
- func (m *NullReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NullReq) XXX_Merge(src proto.Message)
- func (m *NullReq) XXX_Size() int
- func (m *NullReq) XXX_Unmarshal(b []byte) error
- type NullRes
- func (*NullRes) Descriptor() ([]byte, []int)
- func (m *NullRes) Marshal() (dAtA []byte, err error)
- func (m *NullRes) MarshalTo(dAtA []byte) (int, error)
- func (m *NullRes) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*NullRes) ProtoMessage()
- func (m *NullRes) Reset()
- func (m *NullRes) Size() (n int)
- func (m *NullRes) String() string
- func (m *NullRes) Unmarshal(dAtA []byte) error
- func (m *NullRes) XXX_DiscardUnknown()
- func (m *NullRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NullRes) XXX_Merge(src proto.Message)
- func (m *NullRes) XXX_Size() int
- func (m *NullRes) XXX_Unmarshal(b []byte) error
- type SayReq
- func (*SayReq) Descriptor() ([]byte, []int)
- func (m *SayReq) GetContent() string
- func (m *SayReq) Marshal() (dAtA []byte, err error)
- func (m *SayReq) MarshalTo(dAtA []byte) (int, error)
- func (m *SayReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SayReq) ProtoMessage()
- func (m *SayReq) Reset()
- func (m *SayReq) Size() (n int)
- func (m *SayReq) String() string
- func (m *SayReq) Unmarshal(dAtA []byte) error
- func (m *SayReq) XXX_DiscardUnknown()
- func (m *SayReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SayReq) XXX_Merge(src proto.Message)
- func (m *SayReq) XXX_Size() int
- func (m *SayReq) XXX_Unmarshal(b []byte) error
- type SayRes
- func (*SayRes) Descriptor() ([]byte, []int)
- func (m *SayRes) GetContent() string
- func (m *SayRes) Marshal() (dAtA []byte, err error)
- func (m *SayRes) MarshalTo(dAtA []byte) (int, error)
- func (m *SayRes) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SayRes) ProtoMessage()
- func (m *SayRes) Reset()
- func (m *SayRes) Size() (n int)
- func (m *SayRes) String() string
- func (m *SayRes) Unmarshal(dAtA []byte) error
- func (m *SayRes) XXX_DiscardUnknown()
- func (m *SayRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SayRes) XXX_Merge(src proto.Message)
- func (m *SayRes) XXX_Size() int
- func (m *SayRes) XXX_Unmarshal(b []byte) error
- type UnimplementedEchoServer
Constants ¶
View Source
const (
AppId = "echo"
)
Variables ¶
Functions ¶
func RegisterEchoServer ¶
func RegisterEchoServer(s *grpc.Server, srv EchoServer)
Types ¶
type EchoClient ¶
type EchoClient interface {
Say(ctx context.Context, in *SayReq, opts ...grpc.CallOption) (*SayRes, error)
}
EchoClient is the client API for Echo service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewEchoClient ¶
func NewEchoClient(cc *grpc.ClientConn) EchoClient
type EchoServer ¶
EchoServer is the server API for Echo service.
type NullReq ¶
type NullReq struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
空请求
func (*NullReq) Descriptor ¶
func (*NullReq) MarshalToSizedBuffer ¶
func (*NullReq) ProtoMessage ¶
func (*NullReq) ProtoMessage()
func (*NullReq) XXX_DiscardUnknown ¶
func (m *NullReq) XXX_DiscardUnknown()
func (*NullReq) XXX_Marshal ¶
func (*NullReq) XXX_Unmarshal ¶
type NullRes ¶
type NullRes struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
空返回
func (*NullRes) Descriptor ¶
func (*NullRes) MarshalToSizedBuffer ¶
func (*NullRes) ProtoMessage ¶
func (*NullRes) ProtoMessage()
func (*NullRes) XXX_DiscardUnknown ¶
func (m *NullRes) XXX_DiscardUnknown()
func (*NullRes) XXX_Marshal ¶
func (*NullRes) XXX_Unmarshal ¶
type SayReq ¶
type SayReq struct { Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SayReq) Descriptor ¶
func (*SayReq) GetContent ¶
func (*SayReq) MarshalToSizedBuffer ¶
func (*SayReq) ProtoMessage ¶
func (*SayReq) ProtoMessage()
func (*SayReq) XXX_DiscardUnknown ¶
func (m *SayReq) XXX_DiscardUnknown()
func (*SayReq) XXX_Marshal ¶
func (*SayReq) XXX_Unmarshal ¶
type SayRes ¶
type SayRes struct { Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SayRes) Descriptor ¶
func (*SayRes) GetContent ¶
func (*SayRes) MarshalToSizedBuffer ¶
func (*SayRes) ProtoMessage ¶
func (*SayRes) ProtoMessage()
func (*SayRes) XXX_DiscardUnknown ¶
func (m *SayRes) XXX_DiscardUnknown()
func (*SayRes) XXX_Marshal ¶
func (*SayRes) XXX_Unmarshal ¶
type UnimplementedEchoServer ¶
type UnimplementedEchoServer struct { }
UnimplementedEchoServer can be embedded to have forward compatible implementations.
Click to show internal directories.
Click to hide internal directories.