cartservice

package
v0.0.0-...-978cf5a Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var AddItemArgs_Req_DEFAULT *cart.AddItemReq
View Source
var AddItemResult_Success_DEFAULT *cart.AddItemResp
View Source
var EmptyCartArgs_Req_DEFAULT *cart.EmptyCartReq
View Source
var EmptyCartResult_Success_DEFAULT *cart.EmptyCartResp
View Source
var GetCartArgs_Req_DEFAULT *cart.GetCartReq
View Source
var GetCartResult_Success_DEFAULT *cart.GetCartResp

Functions

func NewInvoker

func NewInvoker(handler cart.CartService, opts ...server.Option) server.Invoker

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

func NewServer

func NewServer(handler cart.CartService, opts ...server.Option) server.Server

NewServer creates a server.Server with the given handler and options.

func NewServiceInfo

func NewServiceInfo() *kitex.ServiceInfo

Types

type AddItemArgs

type AddItemArgs struct {
	Req *cart.AddItemReq
}

func (*AddItemArgs) FastRead

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

func (*AddItemArgs) FastWrite

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

func (*AddItemArgs) GetFirstArgument

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

func (*AddItemArgs) GetReq

func (p *AddItemArgs) GetReq() *cart.AddItemReq

func (*AddItemArgs) IsSetReq

func (p *AddItemArgs) IsSetReq() bool

func (*AddItemArgs) Marshal

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

func (*AddItemArgs) Size

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

func (*AddItemArgs) Unmarshal

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

type AddItemResult

type AddItemResult struct {
	Success *cart.AddItemResp
}

func (*AddItemResult) FastRead

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

func (*AddItemResult) FastWrite

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

func (*AddItemResult) GetResult

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

func (*AddItemResult) GetSuccess

func (p *AddItemResult) GetSuccess() *cart.AddItemResp

func (*AddItemResult) IsSetSuccess

func (p *AddItemResult) IsSetSuccess() bool

func (*AddItemResult) Marshal

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

func (*AddItemResult) SetSuccess

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

func (*AddItemResult) Size

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

func (*AddItemResult) Unmarshal

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

type Client

type Client interface {
	AddItem(ctx context.Context, Req *cart.AddItemReq, callOptions ...callopt.Option) (r *cart.AddItemResp, err error)
	GetCart(ctx context.Context, Req *cart.GetCartReq, callOptions ...callopt.Option) (r *cart.GetCartResp, err error)
	EmptyCart(ctx context.Context, Req *cart.EmptyCartReq, callOptions ...callopt.Option) (r *cart.EmptyCartResp, 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 EmptyCartArgs

type EmptyCartArgs struct {
	Req *cart.EmptyCartReq
}

func (*EmptyCartArgs) FastRead

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

func (*EmptyCartArgs) FastWrite

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

func (*EmptyCartArgs) GetFirstArgument

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

func (*EmptyCartArgs) GetReq

func (p *EmptyCartArgs) GetReq() *cart.EmptyCartReq

func (*EmptyCartArgs) IsSetReq

func (p *EmptyCartArgs) IsSetReq() bool

func (*EmptyCartArgs) Marshal

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

func (*EmptyCartArgs) Size

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

func (*EmptyCartArgs) Unmarshal

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

type EmptyCartResult

type EmptyCartResult struct {
	Success *cart.EmptyCartResp
}

func (*EmptyCartResult) FastRead

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

func (*EmptyCartResult) FastWrite

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

func (*EmptyCartResult) GetResult

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

func (*EmptyCartResult) GetSuccess

func (p *EmptyCartResult) GetSuccess() *cart.EmptyCartResp

func (*EmptyCartResult) IsSetSuccess

func (p *EmptyCartResult) IsSetSuccess() bool

func (*EmptyCartResult) Marshal

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

func (*EmptyCartResult) SetSuccess

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

func (*EmptyCartResult) Size

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

func (*EmptyCartResult) Unmarshal

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

type GetCartArgs

type GetCartArgs struct {
	Req *cart.GetCartReq
}

func (*GetCartArgs) FastRead

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

func (*GetCartArgs) FastWrite

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

func (*GetCartArgs) GetFirstArgument

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

func (*GetCartArgs) GetReq

func (p *GetCartArgs) GetReq() *cart.GetCartReq

func (*GetCartArgs) IsSetReq

func (p *GetCartArgs) IsSetReq() bool

func (*GetCartArgs) Marshal

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

func (*GetCartArgs) Size

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

func (*GetCartArgs) Unmarshal

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

type GetCartResult

type GetCartResult struct {
	Success *cart.GetCartResp
}

func (*GetCartResult) FastRead

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

func (*GetCartResult) FastWrite

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

func (*GetCartResult) GetResult

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

func (*GetCartResult) GetSuccess

func (p *GetCartResult) GetSuccess() *cart.GetCartResp

func (*GetCartResult) IsSetSuccess

func (p *GetCartResult) IsSetSuccess() bool

func (*GetCartResult) Marshal

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

func (*GetCartResult) SetSuccess

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

func (*GetCartResult) Size

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

func (*GetCartResult) Unmarshal

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

Jump to

Keyboard shortcuts

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