Documentation ¶
Index ¶
- func RegisterPingPongServer(s *grpc.Server, srv PingPongServer)
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) String() string
- func (m *Empty) XXX_DiscardUnknown()
- func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Empty) XXX_Merge(src proto.Message)
- func (m *Empty) XXX_Size() int
- func (m *Empty) XXX_Unmarshal(b []byte) error
- type ErrorReq
- func (*ErrorReq) Descriptor() ([]byte, []int)
- func (m *ErrorReq) GetCode() uint32
- func (m *ErrorReq) GetMsg() string
- func (*ErrorReq) ProtoMessage()
- func (m *ErrorReq) Reset()
- func (m *ErrorReq) String() string
- func (m *ErrorReq) XXX_DiscardUnknown()
- func (m *ErrorReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ErrorReq) XXX_Merge(src proto.Message)
- func (m *ErrorReq) XXX_Size() int
- func (m *ErrorReq) XXX_Unmarshal(b []byte) error
- type PingPongClient
- type PingPongServer
- type PingReq
- func (*PingReq) Descriptor() ([]byte, []int)
- func (m *PingReq) GetMsg() string
- func (*PingReq) ProtoMessage()
- func (m *PingReq) Reset()
- func (m *PingReq) String() string
- func (m *PingReq) XXX_DiscardUnknown()
- func (m *PingReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PingReq) XXX_Merge(src proto.Message)
- func (m *PingReq) XXX_Size() int
- func (m *PingReq) XXX_Unmarshal(b []byte) error
- type PingResp
- func (*PingResp) Descriptor() ([]byte, []int)
- func (m *PingResp) GetMsg() string
- func (*PingResp) ProtoMessage()
- func (m *PingResp) Reset()
- func (m *PingResp) String() string
- func (m *PingResp) XXX_DiscardUnknown()
- func (m *PingResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PingResp) XXX_Merge(src proto.Message)
- func (m *PingResp) XXX_Size() int
- func (m *PingResp) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterPingPongServer ¶
func RegisterPingPongServer(s *grpc.Server, srv PingPongServer)
Types ¶
type Empty ¶ added in v0.2.0
type Empty struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Empty) Descriptor ¶ added in v0.2.0
func (*Empty) ProtoMessage ¶ added in v0.2.0
func (*Empty) ProtoMessage()
func (*Empty) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *Empty) XXX_DiscardUnknown()
func (*Empty) XXX_Marshal ¶ added in v0.2.0
func (*Empty) XXX_Unmarshal ¶ added in v0.2.0
type ErrorReq ¶ added in v0.2.0
type ErrorReq struct { Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ErrorReq) Descriptor ¶ added in v0.2.0
func (*ErrorReq) ProtoMessage ¶ added in v0.2.0
func (*ErrorReq) ProtoMessage()
func (*ErrorReq) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *ErrorReq) XXX_DiscardUnknown()
func (*ErrorReq) XXX_Marshal ¶ added in v0.2.0
func (*ErrorReq) XXX_Unmarshal ¶ added in v0.2.0
type PingPongClient ¶
type PingPongClient interface { Ping(ctx context.Context, in *PingReq, opts ...grpc.CallOption) (*PingResp, error) Panic(ctx context.Context, in *PingReq, opts ...grpc.CallOption) (*PingResp, error) Err(ctx context.Context, in *ErrorReq, opts ...grpc.CallOption) (*Empty, error) }
PingPongClient is the client API for PingPong service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewPingPongClient ¶
func NewPingPongClient(cc *grpc.ClientConn) PingPongClient
type PingPongServer ¶
type PingPongServer interface { Ping(context.Context, *PingReq) (*PingResp, error) Panic(context.Context, *PingReq) (*PingResp, error) Err(context.Context, *ErrorReq) (*Empty, error) }
PingPongServer is the server API for PingPong service.
func NewPingPongServer ¶
func NewPingPongServer() PingPongServer
type PingReq ¶
type PingReq struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PingReq) Descriptor ¶
func (*PingReq) ProtoMessage ¶
func (*PingReq) ProtoMessage()
func (*PingReq) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *PingReq) XXX_DiscardUnknown()
func (*PingReq) XXX_Marshal ¶ added in v0.2.0
func (*PingReq) XXX_Unmarshal ¶ added in v0.2.0
type PingResp ¶
type PingResp struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PingResp) Descriptor ¶
func (*PingResp) ProtoMessage ¶
func (*PingResp) ProtoMessage()
func (*PingResp) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *PingResp) XXX_DiscardUnknown()
func (*PingResp) XXX_Marshal ¶ added in v0.2.0
func (*PingResp) XXX_Unmarshal ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.