videoservice

package
v0.0.0-...-48d44df Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var CreateVideoArgs_Req_DEFAULT *video_rpc.CreateVideoReq
View Source
var CreateVideoResult_Success_DEFAULT *video_rpc.CreateVideoResp
View Source
var DecreaseCommentCountArgs_Req_DEFAULT *video_rpc.DecreaseCommentCountReq
View Source
var DecreaseCommentCountResult_Success_DEFAULT *video_rpc.DecreaseCommentCountResp
View Source
var DecreaseFavoriteCountArgs_Req_DEFAULT *video_rpc.DecreaseFavoriteCountReq
View Source
var DecreaseFavoriteCountResult_Success_DEFAULT *video_rpc.DecreaseFavoriteCountResp
View Source
var GetAuthorArgs_Req_DEFAULT *video_rpc.GetAuthorReq
View Source
var GetAuthorResult_Success_DEFAULT *video_rpc.GetAuthorResp
View Source
var IncreaseCommentCountArgs_Req_DEFAULT *video_rpc.IncreaseCommentCountReq
View Source
var IncreaseCommentCountResult_Success_DEFAULT *video_rpc.IncreaseCommentCountResp
View Source
var IncreaseFavoriteCountArgs_Req_DEFAULT *video_rpc.IncreaseFavoriteCountReq
View Source
var IncreaseFavoriteCountResult_Success_DEFAULT *video_rpc.IncreaseFavoriteCountResp
View Source
var QueryVideoArgs_Req_DEFAULT *video_rpc.QueryVideoReq
View Source
var QueryVideoByIdBatchArgs_Req_DEFAULT *video_rpc.QueryVideoByVideoIdBatchReq
View Source
var QueryVideoByIdBatchResult_Success_DEFAULT *video_rpc.QueryVideoByVideoIdBatchResp
View Source
var QueryVideoByUserArgs_Req_DEFAULT *video_rpc.QueryVideoByUserReq
View Source
var QueryVideoByUserResult_Success_DEFAULT *video_rpc.QueryVideoByUserResp
View Source
var QueryVideoResult_Success_DEFAULT *video_rpc.QueryVideoResp

Functions

func NewInvoker

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

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

func NewServer

func NewServer(handler video_rpc.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 {
	QueryVideo(ctx context.Context, Req *video_rpc.QueryVideoReq, callOptions ...callopt.Option) (r *video_rpc.QueryVideoResp, err error)
	CreateVideo(ctx context.Context, Req *video_rpc.CreateVideoReq, callOptions ...callopt.Option) (r *video_rpc.CreateVideoResp, err error)
	QueryVideoByUser(ctx context.Context, Req *video_rpc.QueryVideoByUserReq, callOptions ...callopt.Option) (r *video_rpc.QueryVideoByUserResp, err error)
	QueryVideoByIdBatch(ctx context.Context, Req *video_rpc.QueryVideoByVideoIdBatchReq, callOptions ...callopt.Option) (r *video_rpc.QueryVideoByVideoIdBatchResp, err error)
	IncreaseFavoriteCount(ctx context.Context, Req *video_rpc.IncreaseFavoriteCountReq, callOptions ...callopt.Option) (r *video_rpc.IncreaseFavoriteCountResp, err error)
	DecreaseFavoriteCount(ctx context.Context, Req *video_rpc.DecreaseFavoriteCountReq, callOptions ...callopt.Option) (r *video_rpc.DecreaseFavoriteCountResp, err error)
	IncreaseCommentCount(ctx context.Context, Req *video_rpc.IncreaseCommentCountReq, callOptions ...callopt.Option) (r *video_rpc.IncreaseCommentCountResp, err error)
	DecreaseCommentCount(ctx context.Context, Req *video_rpc.DecreaseCommentCountReq, callOptions ...callopt.Option) (r *video_rpc.DecreaseCommentCountResp, err error)
	GetAuthor(ctx context.Context, Req *video_rpc.GetAuthorReq, callOptions ...callopt.Option) (r *video_rpc.GetAuthorResp, 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 CreateVideoArgs

type CreateVideoArgs struct {
	Req *video_rpc.CreateVideoReq
}

func (*CreateVideoArgs) FastRead

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

func (*CreateVideoArgs) FastWrite

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

func (*CreateVideoArgs) GetReq

func (*CreateVideoArgs) IsSetReq

func (p *CreateVideoArgs) IsSetReq() bool

func (*CreateVideoArgs) Marshal

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

func (*CreateVideoArgs) Size

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

func (*CreateVideoArgs) Unmarshal

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

type CreateVideoResult

type CreateVideoResult struct {
	Success *video_rpc.CreateVideoResp
}

func (*CreateVideoResult) FastRead

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

func (*CreateVideoResult) FastWrite

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

func (*CreateVideoResult) GetSuccess

func (p *CreateVideoResult) GetSuccess() *video_rpc.CreateVideoResp

func (*CreateVideoResult) IsSetSuccess

func (p *CreateVideoResult) IsSetSuccess() bool

func (*CreateVideoResult) Marshal

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

func (*CreateVideoResult) SetSuccess

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

func (*CreateVideoResult) Size

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

func (*CreateVideoResult) Unmarshal

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

type DecreaseCommentCountArgs

type DecreaseCommentCountArgs struct {
	Req *video_rpc.DecreaseCommentCountReq
}

func (*DecreaseCommentCountArgs) FastRead

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

func (*DecreaseCommentCountArgs) FastWrite

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

func (*DecreaseCommentCountArgs) GetReq

func (*DecreaseCommentCountArgs) IsSetReq

func (p *DecreaseCommentCountArgs) IsSetReq() bool

func (*DecreaseCommentCountArgs) Marshal

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

func (*DecreaseCommentCountArgs) Size

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

func (*DecreaseCommentCountArgs) Unmarshal

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

type DecreaseCommentCountResult

type DecreaseCommentCountResult struct {
	Success *video_rpc.DecreaseCommentCountResp
}

func (*DecreaseCommentCountResult) FastRead

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

func (*DecreaseCommentCountResult) FastWrite

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

func (*DecreaseCommentCountResult) GetSuccess

func (*DecreaseCommentCountResult) IsSetSuccess

func (p *DecreaseCommentCountResult) IsSetSuccess() bool

func (*DecreaseCommentCountResult) Marshal

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

func (*DecreaseCommentCountResult) SetSuccess

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

func (*DecreaseCommentCountResult) Size

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

func (*DecreaseCommentCountResult) Unmarshal

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

type DecreaseFavoriteCountArgs

type DecreaseFavoriteCountArgs struct {
	Req *video_rpc.DecreaseFavoriteCountReq
}

func (*DecreaseFavoriteCountArgs) FastRead

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

func (*DecreaseFavoriteCountArgs) FastWrite

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

func (*DecreaseFavoriteCountArgs) GetReq

func (*DecreaseFavoriteCountArgs) IsSetReq

func (p *DecreaseFavoriteCountArgs) IsSetReq() bool

func (*DecreaseFavoriteCountArgs) Marshal

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

func (*DecreaseFavoriteCountArgs) Size

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

func (*DecreaseFavoriteCountArgs) Unmarshal

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

type DecreaseFavoriteCountResult

type DecreaseFavoriteCountResult struct {
	Success *video_rpc.DecreaseFavoriteCountResp
}

func (*DecreaseFavoriteCountResult) FastRead

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

func (*DecreaseFavoriteCountResult) FastWrite

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

func (*DecreaseFavoriteCountResult) GetSuccess

func (*DecreaseFavoriteCountResult) IsSetSuccess

func (p *DecreaseFavoriteCountResult) IsSetSuccess() bool

func (*DecreaseFavoriteCountResult) Marshal

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

func (*DecreaseFavoriteCountResult) SetSuccess

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

func (*DecreaseFavoriteCountResult) Size

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

func (*DecreaseFavoriteCountResult) Unmarshal

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

type GetAuthorArgs

type GetAuthorArgs struct {
	Req *video_rpc.GetAuthorReq
}

func (*GetAuthorArgs) FastRead

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

func (*GetAuthorArgs) FastWrite

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

func (*GetAuthorArgs) GetReq

func (p *GetAuthorArgs) GetReq() *video_rpc.GetAuthorReq

func (*GetAuthorArgs) IsSetReq

func (p *GetAuthorArgs) IsSetReq() bool

func (*GetAuthorArgs) Marshal

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

func (*GetAuthorArgs) Size

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

func (*GetAuthorArgs) Unmarshal

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

type GetAuthorResult

type GetAuthorResult struct {
	Success *video_rpc.GetAuthorResp
}

func (*GetAuthorResult) FastRead

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

func (*GetAuthorResult) FastWrite

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

func (*GetAuthorResult) GetSuccess

func (p *GetAuthorResult) GetSuccess() *video_rpc.GetAuthorResp

func (*GetAuthorResult) IsSetSuccess

func (p *GetAuthorResult) IsSetSuccess() bool

func (*GetAuthorResult) Marshal

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

func (*GetAuthorResult) SetSuccess

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

func (*GetAuthorResult) Size

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

func (*GetAuthorResult) Unmarshal

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

type IncreaseCommentCountArgs

type IncreaseCommentCountArgs struct {
	Req *video_rpc.IncreaseCommentCountReq
}

func (*IncreaseCommentCountArgs) FastRead

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

func (*IncreaseCommentCountArgs) FastWrite

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

func (*IncreaseCommentCountArgs) GetReq

func (*IncreaseCommentCountArgs) IsSetReq

func (p *IncreaseCommentCountArgs) IsSetReq() bool

func (*IncreaseCommentCountArgs) Marshal

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

func (*IncreaseCommentCountArgs) Size

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

func (*IncreaseCommentCountArgs) Unmarshal

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

type IncreaseCommentCountResult

type IncreaseCommentCountResult struct {
	Success *video_rpc.IncreaseCommentCountResp
}

func (*IncreaseCommentCountResult) FastRead

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

func (*IncreaseCommentCountResult) FastWrite

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

func (*IncreaseCommentCountResult) GetSuccess

func (*IncreaseCommentCountResult) IsSetSuccess

func (p *IncreaseCommentCountResult) IsSetSuccess() bool

func (*IncreaseCommentCountResult) Marshal

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

func (*IncreaseCommentCountResult) SetSuccess

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

func (*IncreaseCommentCountResult) Size

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

func (*IncreaseCommentCountResult) Unmarshal

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

type IncreaseFavoriteCountArgs

type IncreaseFavoriteCountArgs struct {
	Req *video_rpc.IncreaseFavoriteCountReq
}

func (*IncreaseFavoriteCountArgs) FastRead

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

func (*IncreaseFavoriteCountArgs) FastWrite

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

func (*IncreaseFavoriteCountArgs) GetReq

func (*IncreaseFavoriteCountArgs) IsSetReq

func (p *IncreaseFavoriteCountArgs) IsSetReq() bool

func (*IncreaseFavoriteCountArgs) Marshal

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

func (*IncreaseFavoriteCountArgs) Size

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

func (*IncreaseFavoriteCountArgs) Unmarshal

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

type IncreaseFavoriteCountResult

type IncreaseFavoriteCountResult struct {
	Success *video_rpc.IncreaseFavoriteCountResp
}

func (*IncreaseFavoriteCountResult) FastRead

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

func (*IncreaseFavoriteCountResult) FastWrite

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

func (*IncreaseFavoriteCountResult) GetSuccess

func (*IncreaseFavoriteCountResult) IsSetSuccess

func (p *IncreaseFavoriteCountResult) IsSetSuccess() bool

func (*IncreaseFavoriteCountResult) Marshal

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

func (*IncreaseFavoriteCountResult) SetSuccess

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

func (*IncreaseFavoriteCountResult) Size

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

func (*IncreaseFavoriteCountResult) Unmarshal

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

type QueryVideoArgs

type QueryVideoArgs struct {
	Req *video_rpc.QueryVideoReq
}

func (*QueryVideoArgs) FastRead

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

func (*QueryVideoArgs) FastWrite

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

func (*QueryVideoArgs) GetReq

func (p *QueryVideoArgs) GetReq() *video_rpc.QueryVideoReq

func (*QueryVideoArgs) IsSetReq

func (p *QueryVideoArgs) IsSetReq() bool

func (*QueryVideoArgs) Marshal

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

func (*QueryVideoArgs) Size

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

func (*QueryVideoArgs) Unmarshal

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

type QueryVideoByIdBatchArgs

type QueryVideoByIdBatchArgs struct {
	Req *video_rpc.QueryVideoByVideoIdBatchReq
}

func (*QueryVideoByIdBatchArgs) FastRead

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

func (*QueryVideoByIdBatchArgs) FastWrite

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

func (*QueryVideoByIdBatchArgs) GetReq

func (*QueryVideoByIdBatchArgs) IsSetReq

func (p *QueryVideoByIdBatchArgs) IsSetReq() bool

func (*QueryVideoByIdBatchArgs) Marshal

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

func (*QueryVideoByIdBatchArgs) Size

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

func (*QueryVideoByIdBatchArgs) Unmarshal

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

type QueryVideoByIdBatchResult

type QueryVideoByIdBatchResult struct {
	Success *video_rpc.QueryVideoByVideoIdBatchResp
}

func (*QueryVideoByIdBatchResult) FastRead

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

func (*QueryVideoByIdBatchResult) FastWrite

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

func (*QueryVideoByIdBatchResult) GetSuccess

func (*QueryVideoByIdBatchResult) IsSetSuccess

func (p *QueryVideoByIdBatchResult) IsSetSuccess() bool

func (*QueryVideoByIdBatchResult) Marshal

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

func (*QueryVideoByIdBatchResult) SetSuccess

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

func (*QueryVideoByIdBatchResult) Size

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

func (*QueryVideoByIdBatchResult) Unmarshal

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

type QueryVideoByUserArgs

type QueryVideoByUserArgs struct {
	Req *video_rpc.QueryVideoByUserReq
}

func (*QueryVideoByUserArgs) FastRead

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

func (*QueryVideoByUserArgs) FastWrite

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

func (*QueryVideoByUserArgs) GetReq

func (*QueryVideoByUserArgs) IsSetReq

func (p *QueryVideoByUserArgs) IsSetReq() bool

func (*QueryVideoByUserArgs) Marshal

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

func (*QueryVideoByUserArgs) Size

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

func (*QueryVideoByUserArgs) Unmarshal

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

type QueryVideoByUserResult

type QueryVideoByUserResult struct {
	Success *video_rpc.QueryVideoByUserResp
}

func (*QueryVideoByUserResult) FastRead

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

func (*QueryVideoByUserResult) FastWrite

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

func (*QueryVideoByUserResult) GetSuccess

func (*QueryVideoByUserResult) IsSetSuccess

func (p *QueryVideoByUserResult) IsSetSuccess() bool

func (*QueryVideoByUserResult) Marshal

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

func (*QueryVideoByUserResult) SetSuccess

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

func (*QueryVideoByUserResult) Size

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

func (*QueryVideoByUserResult) Unmarshal

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

type QueryVideoResult

type QueryVideoResult struct {
	Success *video_rpc.QueryVideoResp
}

func (*QueryVideoResult) FastRead

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

func (*QueryVideoResult) FastWrite

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

func (*QueryVideoResult) GetSuccess

func (p *QueryVideoResult) GetSuccess() *video_rpc.QueryVideoResp

func (*QueryVideoResult) IsSetSuccess

func (p *QueryVideoResult) IsSetSuccess() bool

func (*QueryVideoResult) Marshal

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

func (*QueryVideoResult) SetSuccess

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

func (*QueryVideoResult) Size

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

func (*QueryVideoResult) Unmarshal

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

Jump to

Keyboard shortcuts

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