videoservice

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var FeedArgs_Req_DEFAULT *video.FeedRequest
View Source
var FeedResult_Success_DEFAULT *video.FeedResponse
View Source
var GetFavoriteVideoInfoArgs_Req_DEFAULT *video.GetFavoriteVideoInfoRequest
View Source
var GetFavoriteVideoInfoResult_Success_DEFAULT *video.GetFavoriteVideoInfoResponse
View Source
var GetPublishListArgs_Req_DEFAULT *video.GetPublishListRequest
View Source
var GetPublishListResult_Success_DEFAULT *video.GetPublishListResponse
View Source
var GetVideoIDByUidArgs_Req_DEFAULT *video.GetVideoIDByUidRequset
View Source
var GetVideoIDByUidResult_Success_DEFAULT *video.GetVideoIDByUidResponse
View Source
var GetWorkCountArgs_Req_DEFAULT *video.GetWorkCountRequest
View Source
var GetWorkCountResult_Success_DEFAULT *video.GetWorkCountResponse
View Source
var PutVideoArgs_Req_DEFAULT *video.PutVideoRequest
View Source
var PutVideoResult_Success_DEFAULT *video.PutVideoResponse

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 Client

type Client interface {
	Feed(ctx context.Context, Req *video.FeedRequest, callOptions ...callopt.Option) (r *video.FeedResponse, err error)
	PutVideo(ctx context.Context, Req *video.PutVideoRequest, callOptions ...callopt.Option) (r *video.PutVideoResponse, err error)
	GetFavoriteVideoInfo(ctx context.Context, Req *video.GetFavoriteVideoInfoRequest, callOptions ...callopt.Option) (r *video.GetFavoriteVideoInfoResponse, err error)
	GetPublishList(ctx context.Context, Req *video.GetPublishListRequest, callOptions ...callopt.Option) (r *video.GetPublishListResponse, err error)
	GetWorkCount(ctx context.Context, Req *video.GetWorkCountRequest, callOptions ...callopt.Option) (r *video.GetWorkCountResponse, err error)
	GetVideoIDByUid(ctx context.Context, Req *video.GetVideoIDByUidRequset, callOptions ...callopt.Option) (r *video.GetVideoIDByUidResponse, 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 FeedArgs

type FeedArgs struct {
	Req *video.FeedRequest
}

func (*FeedArgs) FastRead

func (p *FeedArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)

func (*FeedArgs) FastWrite

func (p *FeedArgs) FastWrite(buf []byte) (n int)

func (*FeedArgs) GetFirstArgument

func (p *FeedArgs) GetFirstArgument() interface{}

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

func (p *FeedArgs) Size() (n int)

func (*FeedArgs) Unmarshal

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

type FeedResult

type FeedResult struct {
	Success *video.FeedResponse
}

func (*FeedResult) FastRead

func (p *FeedResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)

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() *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) Size

func (p *FeedResult) Size() (n int)

func (*FeedResult) Unmarshal

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

type GetFavoriteVideoInfoArgs

type GetFavoriteVideoInfoArgs struct {
	Req *video.GetFavoriteVideoInfoRequest
}

func (*GetFavoriteVideoInfoArgs) FastRead

func (p *GetFavoriteVideoInfoArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)

func (*GetFavoriteVideoInfoArgs) FastWrite

func (p *GetFavoriteVideoInfoArgs) FastWrite(buf []byte) (n int)

func (*GetFavoriteVideoInfoArgs) GetFirstArgument

func (p *GetFavoriteVideoInfoArgs) GetFirstArgument() interface{}

func (*GetFavoriteVideoInfoArgs) GetReq

func (*GetFavoriteVideoInfoArgs) IsSetReq

func (p *GetFavoriteVideoInfoArgs) IsSetReq() bool

func (*GetFavoriteVideoInfoArgs) Marshal

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

func (*GetFavoriteVideoInfoArgs) Size

func (p *GetFavoriteVideoInfoArgs) Size() (n int)

func (*GetFavoriteVideoInfoArgs) Unmarshal

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

type GetFavoriteVideoInfoResult

type GetFavoriteVideoInfoResult struct {
	Success *video.GetFavoriteVideoInfoResponse
}

func (*GetFavoriteVideoInfoResult) FastRead

func (p *GetFavoriteVideoInfoResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)

func (*GetFavoriteVideoInfoResult) FastWrite

func (p *GetFavoriteVideoInfoResult) FastWrite(buf []byte) (n int)

func (*GetFavoriteVideoInfoResult) GetResult

func (p *GetFavoriteVideoInfoResult) GetResult() interface{}

func (*GetFavoriteVideoInfoResult) GetSuccess

func (*GetFavoriteVideoInfoResult) IsSetSuccess

func (p *GetFavoriteVideoInfoResult) IsSetSuccess() bool

func (*GetFavoriteVideoInfoResult) Marshal

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

func (*GetFavoriteVideoInfoResult) SetSuccess

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

func (*GetFavoriteVideoInfoResult) Size

func (p *GetFavoriteVideoInfoResult) Size() (n int)

func (*GetFavoriteVideoInfoResult) Unmarshal

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

type GetPublishListArgs

type GetPublishListArgs struct {
	Req *video.GetPublishListRequest
}

func (*GetPublishListArgs) FastRead

func (p *GetPublishListArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)

func (*GetPublishListArgs) FastWrite

func (p *GetPublishListArgs) FastWrite(buf []byte) (n int)

func (*GetPublishListArgs) GetFirstArgument

func (p *GetPublishListArgs) GetFirstArgument() interface{}

func (*GetPublishListArgs) GetReq

func (*GetPublishListArgs) IsSetReq

func (p *GetPublishListArgs) IsSetReq() bool

func (*GetPublishListArgs) Marshal

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

func (*GetPublishListArgs) Size

func (p *GetPublishListArgs) Size() (n int)

func (*GetPublishListArgs) Unmarshal

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

type GetPublishListResult

type GetPublishListResult struct {
	Success *video.GetPublishListResponse
}

func (*GetPublishListResult) FastRead

func (p *GetPublishListResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)

func (*GetPublishListResult) FastWrite

func (p *GetPublishListResult) FastWrite(buf []byte) (n int)

func (*GetPublishListResult) GetResult

func (p *GetPublishListResult) GetResult() interface{}

func (*GetPublishListResult) GetSuccess

func (*GetPublishListResult) IsSetSuccess

func (p *GetPublishListResult) IsSetSuccess() bool

func (*GetPublishListResult) Marshal

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

func (*GetPublishListResult) SetSuccess

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

func (*GetPublishListResult) Size

func (p *GetPublishListResult) Size() (n int)

func (*GetPublishListResult) Unmarshal

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

type GetVideoIDByUidArgs

type GetVideoIDByUidArgs struct {
	Req *video.GetVideoIDByUidRequset
}

func (*GetVideoIDByUidArgs) FastRead

func (p *GetVideoIDByUidArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)

func (*GetVideoIDByUidArgs) FastWrite

func (p *GetVideoIDByUidArgs) FastWrite(buf []byte) (n int)

func (*GetVideoIDByUidArgs) GetFirstArgument

func (p *GetVideoIDByUidArgs) GetFirstArgument() interface{}

func (*GetVideoIDByUidArgs) GetReq

func (*GetVideoIDByUidArgs) IsSetReq

func (p *GetVideoIDByUidArgs) IsSetReq() bool

func (*GetVideoIDByUidArgs) Marshal

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

func (*GetVideoIDByUidArgs) Size

func (p *GetVideoIDByUidArgs) Size() (n int)

func (*GetVideoIDByUidArgs) Unmarshal

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

type GetVideoIDByUidResult

type GetVideoIDByUidResult struct {
	Success *video.GetVideoIDByUidResponse
}

func (*GetVideoIDByUidResult) FastRead

func (p *GetVideoIDByUidResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)

func (*GetVideoIDByUidResult) FastWrite

func (p *GetVideoIDByUidResult) FastWrite(buf []byte) (n int)

func (*GetVideoIDByUidResult) GetResult

func (p *GetVideoIDByUidResult) GetResult() interface{}

func (*GetVideoIDByUidResult) GetSuccess

func (*GetVideoIDByUidResult) IsSetSuccess

func (p *GetVideoIDByUidResult) IsSetSuccess() bool

func (*GetVideoIDByUidResult) Marshal

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

func (*GetVideoIDByUidResult) SetSuccess

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

func (*GetVideoIDByUidResult) Size

func (p *GetVideoIDByUidResult) Size() (n int)

func (*GetVideoIDByUidResult) Unmarshal

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

type GetWorkCountArgs

type GetWorkCountArgs struct {
	Req *video.GetWorkCountRequest
}

func (*GetWorkCountArgs) FastRead

func (p *GetWorkCountArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)

func (*GetWorkCountArgs) FastWrite

func (p *GetWorkCountArgs) FastWrite(buf []byte) (n int)

func (*GetWorkCountArgs) GetFirstArgument

func (p *GetWorkCountArgs) GetFirstArgument() interface{}

func (*GetWorkCountArgs) GetReq

func (*GetWorkCountArgs) IsSetReq

func (p *GetWorkCountArgs) IsSetReq() bool

func (*GetWorkCountArgs) Marshal

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

func (*GetWorkCountArgs) Size

func (p *GetWorkCountArgs) Size() (n int)

func (*GetWorkCountArgs) Unmarshal

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

type GetWorkCountResult

type GetWorkCountResult struct {
	Success *video.GetWorkCountResponse
}

func (*GetWorkCountResult) FastRead

func (p *GetWorkCountResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)

func (*GetWorkCountResult) FastWrite

func (p *GetWorkCountResult) FastWrite(buf []byte) (n int)

func (*GetWorkCountResult) GetResult

func (p *GetWorkCountResult) GetResult() interface{}

func (*GetWorkCountResult) GetSuccess

func (*GetWorkCountResult) IsSetSuccess

func (p *GetWorkCountResult) IsSetSuccess() bool

func (*GetWorkCountResult) Marshal

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

func (*GetWorkCountResult) SetSuccess

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

func (*GetWorkCountResult) Size

func (p *GetWorkCountResult) Size() (n int)

func (*GetWorkCountResult) Unmarshal

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

type PutVideoArgs

type PutVideoArgs struct {
	Req *video.PutVideoRequest
}

func (*PutVideoArgs) FastRead

func (p *PutVideoArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)

func (*PutVideoArgs) FastWrite

func (p *PutVideoArgs) FastWrite(buf []byte) (n int)

func (*PutVideoArgs) GetFirstArgument

func (p *PutVideoArgs) GetFirstArgument() interface{}

func (*PutVideoArgs) GetReq

func (p *PutVideoArgs) GetReq() *video.PutVideoRequest

func (*PutVideoArgs) IsSetReq

func (p *PutVideoArgs) IsSetReq() bool

func (*PutVideoArgs) Marshal

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

func (*PutVideoArgs) Size

func (p *PutVideoArgs) Size() (n int)

func (*PutVideoArgs) Unmarshal

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

type PutVideoResult

type PutVideoResult struct {
	Success *video.PutVideoResponse
}

func (*PutVideoResult) FastRead

func (p *PutVideoResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)

func (*PutVideoResult) FastWrite

func (p *PutVideoResult) FastWrite(buf []byte) (n int)

func (*PutVideoResult) GetResult

func (p *PutVideoResult) GetResult() interface{}

func (*PutVideoResult) GetSuccess

func (p *PutVideoResult) GetSuccess() *video.PutVideoResponse

func (*PutVideoResult) IsSetSuccess

func (p *PutVideoResult) IsSetSuccess() bool

func (*PutVideoResult) Marshal

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

func (*PutVideoResult) SetSuccess

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

func (*PutVideoResult) Size

func (p *PutVideoResult) Size() (n int)

func (*PutVideoResult) Unmarshal

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

Jump to

Keyboard shortcuts

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