feedsrv

package
v1.0.2 Latest Latest
Warning

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

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

Documentation

Overview

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

Index

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

func NewInvoker(handler feed.FeedSrv, opts ...server.Option) server.Invoker

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

func NewServer

func NewServer(handler feed.FeedSrv, 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 {
	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

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

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

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

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

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

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

func (*GetVideoByIdArgs) Unmarshal

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

type GetVideoByIdResult

type GetVideoByIdResult struct {
	Success *feed.Video
}

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

Jump to

Keyboard shortcuts

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