Documentation ¶
Index ¶
- Variables
- func RegisterHelloWorldServer(s *roc.Service, h HelloWorldServer)
- type HelloWorldClient
- type HelloWorldServer
- type SayReq
- func (*SayReq) Descriptor() ([]byte, []int)
- func (m *SayReq) GetInc() uint32
- 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) GetInc() uint32
- 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 *roc.Service, h HelloWorldServer)
Types ¶
type HelloWorldClient ¶
type HelloWorldClient interface { // requestResponse or fireAndForget. Say(c *context.Context, req *SayReq, opts ...roc.InvokeOptions) (*SayRsp, error) // requestStream. // SayReq is channel params. SayStream(c *context.Context, req *SayReq, opts ...roc.InvokeOptions) (chan *SayRsp, chan error) // requestChannel. // SayReq and SayRsp is channel. SayChannel(c *context.Context, req chan *SayReq, errIn chan error, opts ...roc.InvokeOptions) (chan *SayRsp, chan error) }
func NewHelloWorldClient ¶
func NewHelloWorldClient(c *roc.Service) HelloWorldClient
type HelloWorldServer ¶
type HelloWorldServer interface { // requestResponse or fireAndForget. Say(c *context.Context, req *SayReq) (rsp *SayRsp, err error) // 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 service.
type SayReq ¶
type SayReq struct {
Inc uint32 `protobuf:"varint,1,opt,name=inc,proto3" json:"inc,omitempty"`
}
request params.
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 {
Inc uint32 `protobuf:"varint,1,opt,name=inc,proto3" json:"inc,omitempty"`
}
response content.
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.