Documentation ¶
Overview ¶
Code generated by Kitex v0.3.1. DO NOT EDIT.
Index ¶
- Variables
- func NewInvoker(handler video.VideoService, opts ...server.Option) server.Invoker
- func NewServer(handler video.VideoService, opts ...server.Option) server.Server
- func NewServiceInfo() *kitex.ServiceInfo
- type CancelFavoriteArgs
- type CancelFavoriteResult
- type Client
- type CommentArgs
- type CommentResult
- type DeleteCommentArgs
- type DeleteCommentResult
- func (p *DeleteCommentResult) GetSuccess() *video.CommentActionResponse
- func (p *DeleteCommentResult) IsSetSuccess() bool
- func (p *DeleteCommentResult) Marshal(out []byte) ([]byte, error)
- func (p *DeleteCommentResult) SetSuccess(x interface{})
- func (p *DeleteCommentResult) Unmarshal(in []byte) error
- type FavoriteArgs
- type FavoriteResult
- type FeedArgs
- type FeedResult
- type MGetCommentArgs
- type MGetCommentResult
- type MGetFavoriteArgs
- type MGetFavoriteResult
- type MGetVideoArgs
- type MGetVideoResult
- type PublishArgs
- type PublishResult
Constants ¶
This section is empty.
Variables ¶
View Source
var CancelFavoriteArgs_Req_DEFAULT *video.FavoriteActionRequest
View Source
var CancelFavoriteResult_Success_DEFAULT *user.BaseResponse
View Source
var CommentArgs_Req_DEFAULT *video.CommentActionRequest
View Source
var CommentResult_Success_DEFAULT *video.CommentActionResponse
View Source
var DeleteCommentArgs_Req_DEFAULT *video.CommentActionRequest
View Source
var DeleteCommentResult_Success_DEFAULT *video.CommentActionResponse
View Source
var FavoriteArgs_Req_DEFAULT *video.FavoriteActionRequest
View Source
var FavoriteResult_Success_DEFAULT *user.BaseResponse
View Source
var FeedArgs_Req_DEFAULT *video.FeedRequest
View Source
var FeedResult_Success_DEFAULT *video.FeedResponse
View Source
var MGetCommentArgs_Req_DEFAULT *video.CommentListRequest
View Source
var MGetCommentResult_Success_DEFAULT *video.CommentListResponse
View Source
var MGetFavoriteArgs_Req_DEFAULT *video.FavoriteListRequest
View Source
var MGetFavoriteResult_Success_DEFAULT *video.FavoriteListResponse
View Source
var MGetVideoArgs_Req_DEFAULT *video.PublishListRequest
View Source
var MGetVideoResult_Success_DEFAULT *video.PublishListResponse
View Source
var PublishArgs_Req_DEFAULT *video.PublishActionRequest
View Source
var PublishResult_Success_DEFAULT *user.BaseResponse
Functions ¶
func NewInvoker ¶
NewInvoker creates a server.Invoker with the given handler and options.
func NewServiceInfo ¶
func NewServiceInfo() *kitex.ServiceInfo
Types ¶
type CancelFavoriteArgs ¶
type CancelFavoriteArgs struct {
Req *video.FavoriteActionRequest
}
func (*CancelFavoriteArgs) GetReq ¶
func (p *CancelFavoriteArgs) GetReq() *video.FavoriteActionRequest
func (*CancelFavoriteArgs) IsSetReq ¶
func (p *CancelFavoriteArgs) IsSetReq() bool
func (*CancelFavoriteArgs) Marshal ¶
func (p *CancelFavoriteArgs) Marshal(out []byte) ([]byte, error)
func (*CancelFavoriteArgs) Unmarshal ¶
func (p *CancelFavoriteArgs) Unmarshal(in []byte) error
type CancelFavoriteResult ¶
type CancelFavoriteResult struct {
Success *user.BaseResponse
}
func (*CancelFavoriteResult) GetSuccess ¶
func (p *CancelFavoriteResult) GetSuccess() *user.BaseResponse
func (*CancelFavoriteResult) IsSetSuccess ¶
func (p *CancelFavoriteResult) IsSetSuccess() bool
func (*CancelFavoriteResult) Marshal ¶
func (p *CancelFavoriteResult) Marshal(out []byte) ([]byte, error)
func (*CancelFavoriteResult) SetSuccess ¶
func (p *CancelFavoriteResult) SetSuccess(x interface{})
func (*CancelFavoriteResult) Unmarshal ¶
func (p *CancelFavoriteResult) Unmarshal(in []byte) error
type Client ¶
type Client interface { Feed(ctx context.Context, Req *video.FeedRequest, callOptions ...callopt.Option) (r *video.FeedResponse, err error) Publish(ctx context.Context, Req *video.PublishActionRequest, callOptions ...callopt.Option) (r *user.BaseResponse, err error) MGetVideo(ctx context.Context, Req *video.PublishListRequest, callOptions ...callopt.Option) (r *video.PublishListResponse, err error) Favorite(ctx context.Context, Req *video.FavoriteActionRequest, callOptions ...callopt.Option) (r *user.BaseResponse, err error) CancelFavorite(ctx context.Context, Req *video.FavoriteActionRequest, callOptions ...callopt.Option) (r *user.BaseResponse, err error) MGetFavorite(ctx context.Context, Req *video.FavoriteListRequest, callOptions ...callopt.Option) (r *video.FavoriteListResponse, err error) Comment(ctx context.Context, Req *video.CommentActionRequest, callOptions ...callopt.Option) (r *video.CommentActionResponse, err error) DeleteComment(ctx context.Context, Req *video.CommentActionRequest, callOptions ...callopt.Option) (r *video.CommentActionResponse, err error) MGetComment(ctx context.Context, Req *video.CommentListRequest, callOptions ...callopt.Option) (r *video.CommentListResponse, 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 CommentArgs ¶
type CommentArgs struct {
Req *video.CommentActionRequest
}
func (*CommentArgs) GetReq ¶
func (p *CommentArgs) GetReq() *video.CommentActionRequest
func (*CommentArgs) IsSetReq ¶
func (p *CommentArgs) IsSetReq() bool
func (*CommentArgs) Unmarshal ¶
func (p *CommentArgs) Unmarshal(in []byte) error
type CommentResult ¶
type CommentResult struct {
Success *video.CommentActionResponse
}
func (*CommentResult) GetSuccess ¶
func (p *CommentResult) GetSuccess() *video.CommentActionResponse
func (*CommentResult) IsSetSuccess ¶
func (p *CommentResult) IsSetSuccess() bool
func (*CommentResult) SetSuccess ¶
func (p *CommentResult) SetSuccess(x interface{})
func (*CommentResult) Unmarshal ¶
func (p *CommentResult) Unmarshal(in []byte) error
type DeleteCommentArgs ¶
type DeleteCommentArgs struct {
Req *video.CommentActionRequest
}
func (*DeleteCommentArgs) GetReq ¶
func (p *DeleteCommentArgs) GetReq() *video.CommentActionRequest
func (*DeleteCommentArgs) IsSetReq ¶
func (p *DeleteCommentArgs) IsSetReq() bool
func (*DeleteCommentArgs) Unmarshal ¶
func (p *DeleteCommentArgs) Unmarshal(in []byte) error
type DeleteCommentResult ¶
type DeleteCommentResult struct {
Success *video.CommentActionResponse
}
func (*DeleteCommentResult) GetSuccess ¶
func (p *DeleteCommentResult) GetSuccess() *video.CommentActionResponse
func (*DeleteCommentResult) IsSetSuccess ¶
func (p *DeleteCommentResult) IsSetSuccess() bool
func (*DeleteCommentResult) Marshal ¶
func (p *DeleteCommentResult) Marshal(out []byte) ([]byte, error)
func (*DeleteCommentResult) SetSuccess ¶
func (p *DeleteCommentResult) SetSuccess(x interface{})
func (*DeleteCommentResult) Unmarshal ¶
func (p *DeleteCommentResult) Unmarshal(in []byte) error
type FavoriteArgs ¶
type FavoriteArgs struct {
Req *video.FavoriteActionRequest
}
func (*FavoriteArgs) GetReq ¶
func (p *FavoriteArgs) GetReq() *video.FavoriteActionRequest
func (*FavoriteArgs) IsSetReq ¶
func (p *FavoriteArgs) IsSetReq() bool
func (*FavoriteArgs) Unmarshal ¶
func (p *FavoriteArgs) Unmarshal(in []byte) error
type FavoriteResult ¶
type FavoriteResult struct {
Success *user.BaseResponse
}
func (*FavoriteResult) GetSuccess ¶
func (p *FavoriteResult) GetSuccess() *user.BaseResponse
func (*FavoriteResult) IsSetSuccess ¶
func (p *FavoriteResult) IsSetSuccess() bool
func (*FavoriteResult) SetSuccess ¶
func (p *FavoriteResult) SetSuccess(x interface{})
func (*FavoriteResult) Unmarshal ¶
func (p *FavoriteResult) Unmarshal(in []byte) error
type FeedArgs ¶
type FeedArgs struct {
Req *video.FeedRequest
}
func (*FeedArgs) GetReq ¶
func (p *FeedArgs) GetReq() *video.FeedRequest
type FeedResult ¶
type FeedResult struct {
Success *video.FeedResponse
}
func (*FeedResult) GetSuccess ¶
func (p *FeedResult) GetSuccess() *video.FeedResponse
func (*FeedResult) IsSetSuccess ¶
func (p *FeedResult) IsSetSuccess() bool
func (*FeedResult) SetSuccess ¶
func (p *FeedResult) SetSuccess(x interface{})
func (*FeedResult) Unmarshal ¶
func (p *FeedResult) Unmarshal(in []byte) error
type MGetCommentArgs ¶
type MGetCommentArgs struct {
Req *video.CommentListRequest
}
func (*MGetCommentArgs) GetReq ¶
func (p *MGetCommentArgs) GetReq() *video.CommentListRequest
func (*MGetCommentArgs) IsSetReq ¶
func (p *MGetCommentArgs) IsSetReq() bool
func (*MGetCommentArgs) Unmarshal ¶
func (p *MGetCommentArgs) Unmarshal(in []byte) error
type MGetCommentResult ¶
type MGetCommentResult struct {
Success *video.CommentListResponse
}
func (*MGetCommentResult) GetSuccess ¶
func (p *MGetCommentResult) GetSuccess() *video.CommentListResponse
func (*MGetCommentResult) IsSetSuccess ¶
func (p *MGetCommentResult) IsSetSuccess() bool
func (*MGetCommentResult) SetSuccess ¶
func (p *MGetCommentResult) SetSuccess(x interface{})
func (*MGetCommentResult) Unmarshal ¶
func (p *MGetCommentResult) Unmarshal(in []byte) error
type MGetFavoriteArgs ¶
type MGetFavoriteArgs struct {
Req *video.FavoriteListRequest
}
func (*MGetFavoriteArgs) GetReq ¶
func (p *MGetFavoriteArgs) GetReq() *video.FavoriteListRequest
func (*MGetFavoriteArgs) IsSetReq ¶
func (p *MGetFavoriteArgs) IsSetReq() bool
func (*MGetFavoriteArgs) Unmarshal ¶
func (p *MGetFavoriteArgs) Unmarshal(in []byte) error
type MGetFavoriteResult ¶
type MGetFavoriteResult struct {
Success *video.FavoriteListResponse
}
func (*MGetFavoriteResult) GetSuccess ¶
func (p *MGetFavoriteResult) GetSuccess() *video.FavoriteListResponse
func (*MGetFavoriteResult) IsSetSuccess ¶
func (p *MGetFavoriteResult) IsSetSuccess() bool
func (*MGetFavoriteResult) Marshal ¶
func (p *MGetFavoriteResult) Marshal(out []byte) ([]byte, error)
func (*MGetFavoriteResult) SetSuccess ¶
func (p *MGetFavoriteResult) SetSuccess(x interface{})
func (*MGetFavoriteResult) Unmarshal ¶
func (p *MGetFavoriteResult) Unmarshal(in []byte) error
type MGetVideoArgs ¶
type MGetVideoArgs struct {
Req *video.PublishListRequest
}
func (*MGetVideoArgs) GetReq ¶
func (p *MGetVideoArgs) GetReq() *video.PublishListRequest
func (*MGetVideoArgs) IsSetReq ¶
func (p *MGetVideoArgs) IsSetReq() bool
func (*MGetVideoArgs) Unmarshal ¶
func (p *MGetVideoArgs) Unmarshal(in []byte) error
type MGetVideoResult ¶
type MGetVideoResult struct {
Success *video.PublishListResponse
}
func (*MGetVideoResult) GetSuccess ¶
func (p *MGetVideoResult) GetSuccess() *video.PublishListResponse
func (*MGetVideoResult) IsSetSuccess ¶
func (p *MGetVideoResult) IsSetSuccess() bool
func (*MGetVideoResult) SetSuccess ¶
func (p *MGetVideoResult) SetSuccess(x interface{})
func (*MGetVideoResult) Unmarshal ¶
func (p *MGetVideoResult) Unmarshal(in []byte) error
type PublishArgs ¶
type PublishArgs struct {
Req *video.PublishActionRequest
}
func (*PublishArgs) GetReq ¶
func (p *PublishArgs) GetReq() *video.PublishActionRequest
func (*PublishArgs) IsSetReq ¶
func (p *PublishArgs) IsSetReq() bool
func (*PublishArgs) Unmarshal ¶
func (p *PublishArgs) Unmarshal(in []byte) error
type PublishResult ¶
type PublishResult struct {
Success *user.BaseResponse
}
func (*PublishResult) GetSuccess ¶
func (p *PublishResult) GetSuccess() *user.BaseResponse
func (*PublishResult) IsSetSuccess ¶
func (p *PublishResult) IsSetSuccess() bool
func (*PublishResult) SetSuccess ¶
func (p *PublishResult) SetSuccess(x interface{})
func (*PublishResult) Unmarshal ¶
func (p *PublishResult) Unmarshal(in []byte) error
Click to show internal directories.
Click to hide internal directories.