Documentation
¶
Index ¶
- Variables
- func RegisterHelloWorldServer(s *server.Server, h HelloWorldServer)
- type ApiReq
- func (*ApiReq) Descriptor() ([]byte, []int)
- func (m *ApiReq) GetParams() map[string]string
- func (m *ApiReq) Marshal() (dAtA []byte, err error)
- func (m *ApiReq) MarshalTo(dAtA []byte) (int, error)
- func (m *ApiReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ApiReq) ProtoMessage()
- func (m *ApiReq) Reset()
- func (m *ApiReq) Size() (n int)
- func (m *ApiReq) String() string
- func (m *ApiReq) Unmarshal(dAtA []byte) error
- func (m *ApiReq) XXX_DiscardUnknown()
- func (m *ApiReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ApiReq) XXX_Merge(src proto.Message)
- func (m *ApiReq) XXX_Size() int
- func (m *ApiReq) XXX_Unmarshal(b []byte) error
- type ApiRsp
- func (*ApiRsp) Descriptor() ([]byte, []int)
- func (m *ApiRsp) GetCode() int32
- func (m *ApiRsp) GetMsg() string
- func (m *ApiRsp) Marshal() (dAtA []byte, err error)
- func (m *ApiRsp) MarshalTo(dAtA []byte) (int, error)
- func (m *ApiRsp) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ApiRsp) ProtoMessage()
- func (m *ApiRsp) Reset()
- func (m *ApiRsp) Size() (n int)
- func (m *ApiRsp) String() string
- func (m *ApiRsp) Unmarshal(dAtA []byte) error
- func (m *ApiRsp) XXX_DiscardUnknown()
- func (m *ApiRsp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ApiRsp) XXX_Merge(src proto.Message)
- func (m *ApiRsp) XXX_Size() int
- func (m *ApiRsp) XXX_Unmarshal(b []byte) error
- type HelloWorldClient
- type HelloWorldServer
- type SayReq
- func (*SayReq) Descriptor() ([]byte, []int)
- func (m *SayReq) GetPing() 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) GetPong() 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 ApiReq ¶ added in v1.0.9
func (*ApiReq) Descriptor ¶ added in v1.0.9
func (*ApiReq) MarshalToSizedBuffer ¶ added in v1.0.9
func (*ApiReq) ProtoMessage ¶ added in v1.0.9
func (*ApiReq) ProtoMessage()
func (*ApiReq) XXX_DiscardUnknown ¶ added in v1.0.9
func (m *ApiReq) XXX_DiscardUnknown()
func (*ApiReq) XXX_Marshal ¶ added in v1.0.9
func (*ApiReq) XXX_Unmarshal ¶ added in v1.0.9
type ApiRsp ¶ added in v1.0.9
type ApiRsp struct {
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
}
func (*ApiRsp) Descriptor ¶ added in v1.0.9
func (*ApiRsp) MarshalToSizedBuffer ¶ added in v1.0.9
func (*ApiRsp) ProtoMessage ¶ added in v1.0.9
func (*ApiRsp) ProtoMessage()
func (*ApiRsp) XXX_DiscardUnknown ¶ added in v1.0.9
func (m *ApiRsp) XXX_DiscardUnknown()
func (*ApiRsp) XXX_Marshal ¶ added in v1.0.9
func (*ApiRsp) XXX_Unmarshal ¶ added in v1.0.9
type HelloWorldClient ¶
type HelloWorldClient interface {
// requestResponse or fireAndForget.
Say(c *context.Context, req *SayReq, opts ...invoke.InvokeOptions) (*SayRsp, error)
// get http request api
SayGet(c *context.Context, req *ApiReq, opts ...invoke.InvokeOptions) (*ApiRsp, 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) (err error)
// get http request api
SayGet(c *context.Context, req *ApiReq, rsp *ApiRsp) (err error)
}
HelloWorldServer is the server API for HelloWorld server.
type SayReq ¶
type SayReq struct {
Ping string `protobuf:"bytes,1,opt,name=ping,proto3" json:"ping,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 {
Pong string `protobuf:"bytes,2,opt,name=pong,proto3" json:"pong,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.