Documentation ¶
Overview ¶
Code generated by Kitex v0.7.0. DO NOT EDIT.
Index ¶
- Variables
- func NewInvoker(handler feed.FeedService, opts ...server.Option) server.Invoker
- func NewServer(handler feed.FeedService, opts ...server.Option) server.Server
- func NewServiceInfo() *kitex.ServiceInfo
- type Client
- type FeedArgs
- func (p *FeedArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *FeedArgs) FastWrite(buf []byte) (n int)
- func (p *FeedArgs) GetFirstArgument() interface{}
- func (p *FeedArgs) GetReq() *feed.FeedRequest
- func (p *FeedArgs) IsSetReq() bool
- func (p *FeedArgs) Marshal(out []byte) ([]byte, error)
- func (p *FeedArgs) Size() (n int)
- func (p *FeedArgs) Unmarshal(in []byte) error
- type FeedResult
- func (p *FeedResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *FeedResult) FastWrite(buf []byte) (n int)
- func (p *FeedResult) GetResult() interface{}
- func (p *FeedResult) GetSuccess() *feed.FeedResponse
- func (p *FeedResult) IsSetSuccess() bool
- func (p *FeedResult) Marshal(out []byte) ([]byte, error)
- func (p *FeedResult) SetSuccess(x interface{})
- func (p *FeedResult) Size() (n int)
- func (p *FeedResult) Unmarshal(in []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var FeedArgs_Req_DEFAULT *feed.FeedRequest
View Source
var FeedResult_Success_DEFAULT *feed.FeedResponse
Functions ¶
func NewInvoker ¶
NewInvoker creates a server.Invoker with the given handler and options.
func NewServiceInfo ¶
func NewServiceInfo() *kitex.ServiceInfo
Types ¶
type Client ¶
type Client interface {
Feed(ctx context.Context, Req *feed.FeedRequest, callOptions ...callopt.Option) (r *feed.FeedResponse, err error)
}
Client is designed to provide IDL-compatible methods with call-option parameter for kitex framework.
func MustNewClient ¶
MustNewClient creates a client for the service defined in IDL. It panics if any error occurs.
type FeedArgs ¶
type FeedArgs struct {
Req *feed.FeedRequest
}
func (*FeedArgs) GetFirstArgument ¶
func (p *FeedArgs) GetFirstArgument() interface{}
func (*FeedArgs) GetReq ¶
func (p *FeedArgs) GetReq() *feed.FeedRequest
type FeedResult ¶
type FeedResult struct {
Success *feed.FeedResponse
}
func (*FeedResult) FastWrite ¶
func (p *FeedResult) FastWrite(buf []byte) (n int)
func (*FeedResult) GetResult ¶
func (p *FeedResult) GetResult() interface{}
func (*FeedResult) GetSuccess ¶
func (p *FeedResult) GetSuccess() *feed.FeedResponse
func (*FeedResult) IsSetSuccess ¶
func (p *FeedResult) IsSetSuccess() bool
func (*FeedResult) SetSuccess ¶
func (p *FeedResult) SetSuccess(x interface{})
func (*FeedResult) Size ¶
func (p *FeedResult) Size() (n int)
func (*FeedResult) Unmarshal ¶
func (p *FeedResult) Unmarshal(in []byte) error
Click to show internal directories.
Click to hide internal directories.