videoservice

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Code generated by Kitex v0.3.1. DO NOT EDIT.

Index

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

func NewInvoker(handler video.VideoService, opts ...server.Option) server.Invoker

NewInvoker creates a server.Invoker with the given handler and options.

func NewServer

func NewServer(handler video.VideoService, opts ...server.Option) server.Server

NewServer creates a server.Server 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 (*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

func MustNewClient(destService string, opts ...client.Option) Client

MustNewClient creates a client for the service defined in IDL. It panics if any error occurs.

func NewClient

func NewClient(destService string, opts ...client.Option) (Client, error)

NewClient creates a client for the service defined in IDL.

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) Marshal

func (p *CommentArgs) Marshal(out []byte) ([]byte, error)

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) Marshal

func (p *CommentResult) Marshal(out []byte) ([]byte, error)

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 (*DeleteCommentArgs) IsSetReq

func (p *DeleteCommentArgs) IsSetReq() bool

func (*DeleteCommentArgs) Marshal

func (p *DeleteCommentArgs) Marshal(out []byte) ([]byte, error)

func (*DeleteCommentArgs) Unmarshal

func (p *DeleteCommentArgs) Unmarshal(in []byte) error

type DeleteCommentResult

type DeleteCommentResult struct {
	Success *video.CommentActionResponse
}

func (*DeleteCommentResult) GetSuccess

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 (*FavoriteArgs) IsSetReq

func (p *FavoriteArgs) IsSetReq() bool

func (*FavoriteArgs) Marshal

func (p *FavoriteArgs) Marshal(out []byte) ([]byte, error)

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) Marshal

func (p *FavoriteResult) Marshal(out []byte) ([]byte, error)

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

func (*FeedArgs) IsSetReq

func (p *FeedArgs) IsSetReq() bool

func (*FeedArgs) Marshal

func (p *FeedArgs) Marshal(out []byte) ([]byte, error)

func (*FeedArgs) Unmarshal

func (p *FeedArgs) Unmarshal(in []byte) error

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) Marshal

func (p *FeedResult) Marshal(out []byte) ([]byte, error)

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 (*MGetCommentArgs) IsSetReq

func (p *MGetCommentArgs) IsSetReq() bool

func (*MGetCommentArgs) Marshal

func (p *MGetCommentArgs) Marshal(out []byte) ([]byte, error)

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) Marshal

func (p *MGetCommentResult) Marshal(out []byte) ([]byte, error)

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 (*MGetFavoriteArgs) IsSetReq

func (p *MGetFavoriteArgs) IsSetReq() bool

func (*MGetFavoriteArgs) Marshal

func (p *MGetFavoriteArgs) Marshal(out []byte) ([]byte, error)

func (*MGetFavoriteArgs) Unmarshal

func (p *MGetFavoriteArgs) Unmarshal(in []byte) error

type MGetFavoriteResult

type MGetFavoriteResult struct {
	Success *video.FavoriteListResponse
}

func (*MGetFavoriteResult) GetSuccess

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) Marshal

func (p *MGetVideoArgs) Marshal(out []byte) ([]byte, error)

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) Marshal

func (p *MGetVideoResult) Marshal(out []byte) ([]byte, error)

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) Marshal

func (p *PublishArgs) Marshal(out []byte) ([]byte, error)

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) Marshal

func (p *PublishResult) Marshal(out []byte) ([]byte, error)

func (*PublishResult) SetSuccess

func (p *PublishResult) SetSuccess(x interface{})

func (*PublishResult) Unmarshal

func (p *PublishResult) Unmarshal(in []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL