Documentation
¶
Index ¶
- Variables
- func RegisterHelloServer(s *server.RocServer, h HelloServer)
- type HelloClient
- type HelloServer
- type RocReq
- func (*RocReq) Descriptor() ([]byte, []int)
- func (m *RocReq) GetName() string
- func (m *RocReq) Marshal() (dAtA []byte, err error)
- func (m *RocReq) MarshalTo(dAtA []byte) (int, error)
- func (m *RocReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RocReq) ProtoMessage()
- func (m *RocReq) Reset()
- func (m *RocReq) Size() (n int)
- func (m *RocReq) String() string
- func (m *RocReq) Unmarshal(dAtA []byte) error
- func (m *RocReq) XXX_DiscardUnknown()
- func (m *RocReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RocReq) XXX_Merge(src proto.Message)
- func (m *RocReq) XXX_Size() int
- func (m *RocReq) XXX_Unmarshal(b []byte) error
- type RocRsp
- func (*RocRsp) Descriptor() ([]byte, []int)
- func (m *RocRsp) GetName() string
- func (m *RocRsp) Marshal() (dAtA []byte, err error)
- func (m *RocRsp) MarshalTo(dAtA []byte) (int, error)
- func (m *RocRsp) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RocRsp) ProtoMessage()
- func (m *RocRsp) Reset()
- func (m *RocRsp) Size() (n int)
- func (m *RocRsp) String() string
- func (m *RocRsp) Unmarshal(dAtA []byte) error
- func (m *RocRsp) XXX_DiscardUnknown()
- func (m *RocRsp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RocRsp) XXX_Merge(src proto.Message)
- func (m *RocRsp) XXX_Size() int
- func (m *RocRsp) XXX_Unmarshal(b []byte) error
- 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 RegisterHelloServer ¶
func RegisterHelloServer(s *server.RocServer, h HelloServer)
Types ¶
type HelloClient ¶
type HelloClient interface {
Say(c *context.Context, req *SayReq, opts ...client.InvokeOptions) (*SayRsp, error)
Roc(c *context.Context, req *RocReq, opts ...client.InvokeOptions) (*RocRsp, error)
}
func NewHelloClient ¶
func NewHelloClient(c *client.RocClient) HelloClient
type HelloServer ¶
type HelloServer interface {
Say(c *context.Context, req *SayReq) (rsp *SayRsp, err error)
Roc(c *context.Context, req *RocReq) (rsp *RocRsp, err error)
}
HelloServer is the server API for Hello service.
type RocReq ¶
type RocReq struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (*RocReq) Descriptor ¶
func (*RocReq) MarshalToSizedBuffer ¶
func (*RocReq) ProtoMessage ¶
func (*RocReq) ProtoMessage()
func (*RocReq) XXX_DiscardUnknown ¶
func (m *RocReq) XXX_DiscardUnknown()
func (*RocReq) XXX_Marshal ¶
func (*RocReq) XXX_Unmarshal ¶
type RocRsp ¶
type RocRsp struct {
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
}
func (*RocRsp) Descriptor ¶
func (*RocRsp) MarshalToSizedBuffer ¶
func (*RocRsp) ProtoMessage ¶
func (*RocRsp) ProtoMessage()
func (*RocRsp) XXX_DiscardUnknown ¶
func (m *RocRsp) XXX_DiscardUnknown()
func (*RocRsp) XXX_Marshal ¶
func (*RocRsp) XXX_Unmarshal ¶
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,2,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.