order

package
v0.0.0-...-d739c15 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KitexUnusedProtection = struct{}{}

KitexUnusedProtection is used to prevent 'imported and not used' error.

Functions

This section is empty.

Types

type OrderService

type OrderService interface {
	Create(ctx context.Context, userId string, commodityCode string, count int32) (err error)
}

type OrderServiceClient

type OrderServiceClient struct {
	// contains filtered or unexported fields
}

func NewOrderServiceClient

func NewOrderServiceClient(c thrift.TClient) *OrderServiceClient

func NewOrderServiceClientProtocol

func NewOrderServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *OrderServiceClient

func (*OrderServiceClient) Client_

func (p *OrderServiceClient) Client_() thrift.TClient

func (*OrderServiceClient) Create

func (p *OrderServiceClient) Create(ctx context.Context, userId string, commodityCode string, count int32) (err error)

type OrderServiceCreateArgs

type OrderServiceCreateArgs struct {
	UserId        string `thrift:"userId,1" frugal:"1,default,string" json:"userId"`
	CommodityCode string `thrift:"commodityCode,2" frugal:"2,default,string" json:"commodityCode"`
	Count         int32  `thrift:"count,3" frugal:"3,default,i32" json:"count"`
}

func NewOrderServiceCreateArgs

func NewOrderServiceCreateArgs() *OrderServiceCreateArgs

func (*OrderServiceCreateArgs) BLength

func (p *OrderServiceCreateArgs) BLength() int

func (*OrderServiceCreateArgs) DeepEqual

func (*OrderServiceCreateArgs) FastRead

func (p *OrderServiceCreateArgs) FastRead(buf []byte) (int, error)

func (*OrderServiceCreateArgs) FastReadField1

func (p *OrderServiceCreateArgs) FastReadField1(buf []byte) (int, error)

func (*OrderServiceCreateArgs) FastReadField2

func (p *OrderServiceCreateArgs) FastReadField2(buf []byte) (int, error)

func (*OrderServiceCreateArgs) FastReadField3

func (p *OrderServiceCreateArgs) FastReadField3(buf []byte) (int, error)

func (*OrderServiceCreateArgs) FastWrite

func (p *OrderServiceCreateArgs) FastWrite(buf []byte) int

for compatibility

func (*OrderServiceCreateArgs) FastWriteNocopy

func (p *OrderServiceCreateArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*OrderServiceCreateArgs) Field1DeepEqual

func (p *OrderServiceCreateArgs) Field1DeepEqual(src string) bool

func (*OrderServiceCreateArgs) Field2DeepEqual

func (p *OrderServiceCreateArgs) Field2DeepEqual(src string) bool

func (*OrderServiceCreateArgs) Field3DeepEqual

func (p *OrderServiceCreateArgs) Field3DeepEqual(src int32) bool

func (*OrderServiceCreateArgs) GetCommodityCode

func (p *OrderServiceCreateArgs) GetCommodityCode() (v string)

func (*OrderServiceCreateArgs) GetCount

func (p *OrderServiceCreateArgs) GetCount() (v int32)

func (*OrderServiceCreateArgs) GetFirstArgument

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

func (*OrderServiceCreateArgs) GetUserId

func (p *OrderServiceCreateArgs) GetUserId() (v string)

func (*OrderServiceCreateArgs) InitDefault

func (p *OrderServiceCreateArgs) InitDefault()

func (*OrderServiceCreateArgs) Read

func (p *OrderServiceCreateArgs) Read(iprot thrift.TProtocol) (err error)

func (*OrderServiceCreateArgs) ReadField1

func (p *OrderServiceCreateArgs) ReadField1(iprot thrift.TProtocol) error

func (*OrderServiceCreateArgs) ReadField2

func (p *OrderServiceCreateArgs) ReadField2(iprot thrift.TProtocol) error

func (*OrderServiceCreateArgs) ReadField3

func (p *OrderServiceCreateArgs) ReadField3(iprot thrift.TProtocol) error

func (*OrderServiceCreateArgs) SetCommodityCode

func (p *OrderServiceCreateArgs) SetCommodityCode(val string)

func (*OrderServiceCreateArgs) SetCount

func (p *OrderServiceCreateArgs) SetCount(val int32)

func (*OrderServiceCreateArgs) SetUserId

func (p *OrderServiceCreateArgs) SetUserId(val string)

func (*OrderServiceCreateArgs) String

func (p *OrderServiceCreateArgs) String() string

func (*OrderServiceCreateArgs) Write

func (p *OrderServiceCreateArgs) Write(oprot thrift.TProtocol) (err error)

type OrderServiceCreateResult

type OrderServiceCreateResult struct {
}

func NewOrderServiceCreateResult

func NewOrderServiceCreateResult() *OrderServiceCreateResult

func (*OrderServiceCreateResult) BLength

func (p *OrderServiceCreateResult) BLength() int

func (*OrderServiceCreateResult) DeepEqual

func (*OrderServiceCreateResult) FastRead

func (p *OrderServiceCreateResult) FastRead(buf []byte) (int, error)

func (*OrderServiceCreateResult) FastWrite

func (p *OrderServiceCreateResult) FastWrite(buf []byte) int

for compatibility

func (*OrderServiceCreateResult) FastWriteNocopy

func (p *OrderServiceCreateResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*OrderServiceCreateResult) GetResult

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

func (*OrderServiceCreateResult) InitDefault

func (p *OrderServiceCreateResult) InitDefault()

func (*OrderServiceCreateResult) Read

func (p *OrderServiceCreateResult) Read(iprot thrift.TProtocol) (err error)

func (*OrderServiceCreateResult) String

func (p *OrderServiceCreateResult) String() string

func (*OrderServiceCreateResult) Write

func (p *OrderServiceCreateResult) Write(oprot thrift.TProtocol) (err error)

type OrderServiceProcessor

type OrderServiceProcessor struct {
	// contains filtered or unexported fields
}

func NewOrderServiceProcessor

func NewOrderServiceProcessor(handler OrderService) *OrderServiceProcessor

func (*OrderServiceProcessor) AddToProcessorMap

func (p *OrderServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)

func (*OrderServiceProcessor) GetProcessorFunction

func (p *OrderServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)

func (*OrderServiceProcessor) Process

func (p *OrderServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)

func (*OrderServiceProcessor) ProcessorMap

func (p *OrderServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction

Directories

Path Synopsis
Code generated by Kitex v0.9.1.
Code generated by Kitex v0.9.1.

Jump to

Keyboard shortcuts

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