Documentation ¶
Overview ¶
Code generated by Kitex v0.3.2. DO NOT EDIT.
Index ¶
- Variables
- func NewInvoker(handler feed.FeedSrv, opts ...server.Option) server.Invoker
- func NewServer(handler feed.FeedSrv, opts ...server.Option) server.Server
- func NewServiceInfo() *kitex.ServiceInfo
- type Client
- type GetUserFeedArgs
- type GetUserFeedResult
- type GetVideoByIdArgs
- type GetVideoByIdResult
Constants ¶
This section is empty.
Variables ¶
View Source
var GetUserFeedArgs_Req_DEFAULT *feed.DouyinFeedRequest
View Source
var GetUserFeedResult_Success_DEFAULT *feed.DouyinFeedResponse
View Source
var GetVideoByIdArgs_Req_DEFAULT *feed.VideoIdRequest
View Source
var GetVideoByIdResult_Success_DEFAULT *feed.Video
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 { GetUserFeed(ctx context.Context, Req *feed.DouyinFeedRequest, callOptions ...callopt.Option) (r *feed.DouyinFeedResponse, err error) GetVideoById(ctx context.Context, Req *feed.VideoIdRequest, callOptions ...callopt.Option) (r *feed.Video, 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 GetUserFeedArgs ¶
type GetUserFeedArgs struct {
Req *feed.DouyinFeedRequest
}
func (*GetUserFeedArgs) GetReq ¶
func (p *GetUserFeedArgs) GetReq() *feed.DouyinFeedRequest
func (*GetUserFeedArgs) IsSetReq ¶
func (p *GetUserFeedArgs) IsSetReq() bool
func (*GetUserFeedArgs) Unmarshal ¶
func (p *GetUserFeedArgs) Unmarshal(in []byte) error
type GetUserFeedResult ¶
type GetUserFeedResult struct {
Success *feed.DouyinFeedResponse
}
func (*GetUserFeedResult) GetSuccess ¶
func (p *GetUserFeedResult) GetSuccess() *feed.DouyinFeedResponse
func (*GetUserFeedResult) IsSetSuccess ¶
func (p *GetUserFeedResult) IsSetSuccess() bool
func (*GetUserFeedResult) SetSuccess ¶
func (p *GetUserFeedResult) SetSuccess(x interface{})
func (*GetUserFeedResult) Unmarshal ¶
func (p *GetUserFeedResult) Unmarshal(in []byte) error
type GetVideoByIdArgs ¶
type GetVideoByIdArgs struct {
Req *feed.VideoIdRequest
}
func (*GetVideoByIdArgs) GetReq ¶
func (p *GetVideoByIdArgs) GetReq() *feed.VideoIdRequest
func (*GetVideoByIdArgs) IsSetReq ¶
func (p *GetVideoByIdArgs) IsSetReq() bool
func (*GetVideoByIdArgs) Unmarshal ¶
func (p *GetVideoByIdArgs) Unmarshal(in []byte) error
type GetVideoByIdResult ¶
func (*GetVideoByIdResult) GetSuccess ¶
func (p *GetVideoByIdResult) GetSuccess() *feed.Video
func (*GetVideoByIdResult) IsSetSuccess ¶
func (p *GetVideoByIdResult) IsSetSuccess() bool
func (*GetVideoByIdResult) Marshal ¶
func (p *GetVideoByIdResult) Marshal(out []byte) ([]byte, error)
func (*GetVideoByIdResult) SetSuccess ¶
func (p *GetVideoByIdResult) SetSuccess(x interface{})
func (*GetVideoByIdResult) Unmarshal ¶
func (p *GetVideoByIdResult) Unmarshal(in []byte) error
Click to show internal directories.
Click to hide internal directories.