favoriteservice

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: MIT 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 FavoriteActionArgs_Req_DEFAULT *favorite.FavoriteActionRequest
View Source
var FavoriteActionResult_Success_DEFAULT *favorite.FavoriteActionResponse
View Source
var FavoriteListArgs_Req_DEFAULT *favorite.FavoriteListRequest
View Source
var FavoriteListResult_Success_DEFAULT *favorite.FavoriteListResponse

Functions

func NewInvoker

func NewInvoker(handler favorite.FavoriteService, opts ...server.Option) server.Invoker

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

func NewServer

func NewServer(handler favorite.FavoriteService, 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 {
	FavoriteAction(ctx context.Context, Req *favorite.FavoriteActionRequest, callOptions ...callopt.Option) (r *favorite.FavoriteActionResponse, err error)
	FavoriteList(ctx context.Context, Req *favorite.FavoriteListRequest, callOptions ...callopt.Option) (r *favorite.FavoriteListResponse, 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 FavoriteActionArgs

type FavoriteActionArgs struct {
	Req *favorite.FavoriteActionRequest
}

func (*FavoriteActionArgs) GetReq

func (*FavoriteActionArgs) IsSetReq

func (p *FavoriteActionArgs) IsSetReq() bool

func (*FavoriteActionArgs) Marshal

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

func (*FavoriteActionArgs) Unmarshal

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

type FavoriteActionResult

type FavoriteActionResult struct {
	Success *favorite.FavoriteActionResponse
}

func (*FavoriteActionResult) GetSuccess

func (*FavoriteActionResult) IsSetSuccess

func (p *FavoriteActionResult) IsSetSuccess() bool

func (*FavoriteActionResult) Marshal

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

func (*FavoriteActionResult) SetSuccess

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

func (*FavoriteActionResult) Unmarshal

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

type FavoriteListArgs

type FavoriteListArgs struct {
	Req *favorite.FavoriteListRequest
}

func (*FavoriteListArgs) GetReq

func (*FavoriteListArgs) IsSetReq

func (p *FavoriteListArgs) IsSetReq() bool

func (*FavoriteListArgs) Marshal

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

func (*FavoriteListArgs) Unmarshal

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

type FavoriteListResult

type FavoriteListResult struct {
	Success *favorite.FavoriteListResponse
}

func (*FavoriteListResult) GetSuccess

func (*FavoriteListResult) IsSetSuccess

func (p *FavoriteListResult) IsSetSuccess() bool

func (*FavoriteListResult) Marshal

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

func (*FavoriteListResult) SetSuccess

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

func (*FavoriteListResult) Unmarshal

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

Jump to

Keyboard shortcuts

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