Documentation ¶
Index ¶
- Variables
- func RegisterHelloWorldServer(s *server.Server, h HelloWorldServer)
- type HelloWorldClient
- type HelloWorldServer
- type SayReq
- func (*SayReq) Descriptor() ([]byte, []int)
- func (m *SayReq) GetName() 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 SayRsp
- func (*SayRsp) Descriptor() ([]byte, []int)
- func (m *SayRsp) GetName() string
- func (m *SayRsp) Marshal() (dAtA []byte, err error)
- func (m *SayRsp) MarshalTo(dAtA []byte) (int, error)
- func (m *SayRsp) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SayRsp) ProtoMessage()
- func (m *SayRsp) Reset()
- func (m *SayRsp) Size() (n int)
- func (m *SayRsp) String() string
- func (m *SayRsp) Unmarshal(dAtA []byte) error
- func (m *SayRsp) XXX_DiscardUnknown()
- func (m *SayRsp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SayRsp) XXX_Merge(src proto.Message)
- func (m *SayRsp) XXX_Size() int
- func (m *SayRsp) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegisterHelloWorldServer ¶
func RegisterHelloWorldServer(s *server.Server, h HelloWorldServer)
Types ¶
type HelloWorldClient ¶
type HelloWorldClient interface { // requestResponse or fireAndForget. Say(c *context.Context, req *SayReq, opts ...invoke.InvokeOptions) (*SayRsp, error) // requestStream. // SayReq is channel params. SayStream(c *context.Context, req *SayReq, opts ...invoke.InvokeOptions) (chan *SayRsp, chan error) // requestChannel. // SayReq and SayRsp is channel. SayChannel(c *context.Context, req chan *SayReq, errIn chan error, opts ...invoke.InvokeOptions) (chan *SayRsp, chan error) }
func NewHelloWorldClient ¶
func NewHelloWorldClient(c *client.Client) HelloWorldClient
type HelloWorldServer ¶
type HelloWorldServer interface { // requestResponse or fireAndForget. Say(c *context.Context, req *SayReq, rsp *SayRsp) // requestStream. // SayReq is channel params. SayStream(c *context.Context, req *SayReq) (chan *SayRsp, chan error) // requestChannel. // SayReq and SayRsp is channel. SayChannel(c *context.Context, req chan *SayReq, errIn chan error) (chan *SayRsp, chan error) }
HelloWorldServer is the server API for HelloWorld server.
type SayReq ¶
type SayReq struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (*SayReq) Descriptor ¶
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 SayRsp ¶
type SayRsp struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (*SayRsp) Descriptor ¶
func (*SayRsp) MarshalToSizedBuffer ¶
func (*SayRsp) ProtoMessage ¶
func (*SayRsp) ProtoMessage()
func (*SayRsp) XXX_DiscardUnknown ¶
func (m *SayRsp) XXX_DiscardUnknown()
func (*SayRsp) XXX_Marshal ¶
func (*SayRsp) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.