checkoutservice

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: 2

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var CheckoutArgs_Req_DEFAULT *checkout.CheckoutReq
View Source
var CheckoutResult_Success_DEFAULT *checkout.CheckoutResp

Functions

func NewInvoker

func NewInvoker(handler checkout.CheckoutService, opts ...server.Option) server.Invoker

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

func NewServer

func NewServer(handler checkout.CheckoutService, opts ...server.Option) server.Server

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

func NewServiceInfo

func NewServiceInfo() *kitex.ServiceInfo

Types

type CheckoutArgs

type CheckoutArgs struct {
	Req *checkout.CheckoutReq
}

func (*CheckoutArgs) FastRead

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

func (*CheckoutArgs) FastWrite

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

func (*CheckoutArgs) GetFirstArgument

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

func (*CheckoutArgs) GetReq

func (p *CheckoutArgs) GetReq() *checkout.CheckoutReq

func (*CheckoutArgs) IsSetReq

func (p *CheckoutArgs) IsSetReq() bool

func (*CheckoutArgs) Marshal

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

func (*CheckoutArgs) Size

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

func (*CheckoutArgs) Unmarshal

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

type CheckoutResult

type CheckoutResult struct {
	Success *checkout.CheckoutResp
}

func (*CheckoutResult) FastRead

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

func (*CheckoutResult) FastWrite

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

func (*CheckoutResult) GetResult

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

func (*CheckoutResult) GetSuccess

func (p *CheckoutResult) GetSuccess() *checkout.CheckoutResp

func (*CheckoutResult) IsSetSuccess

func (p *CheckoutResult) IsSetSuccess() bool

func (*CheckoutResult) Marshal

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

func (*CheckoutResult) SetSuccess

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

func (*CheckoutResult) Size

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

func (*CheckoutResult) Unmarshal

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

type Client

type Client interface {
	Checkout(ctx context.Context, Req *checkout.CheckoutReq, callOptions ...callopt.Option) (r *checkout.CheckoutResp, 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.

Jump to

Keyboard shortcuts

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