api

package
v0.0.0-...-ecd8b35 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: MIT 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 AdditionRequest

type AdditionRequest struct {
	FirstNum  string `thrift:"FirstNum,1,required" frugal:"1,required,string" json:"FirstNum"`
	SecondNum string `thrift:"SecondNum,2,required" frugal:"2,required,string" json:"SecondNum"`
}
var GatewayAddNumbersArgs_Req_DEFAULT *AdditionRequest

func NewAdditionRequest

func NewAdditionRequest() *AdditionRequest

func (*AdditionRequest) BLength

func (p *AdditionRequest) BLength() int

func (*AdditionRequest) DeepEqual

func (p *AdditionRequest) DeepEqual(ano *AdditionRequest) bool

func (*AdditionRequest) FastRead

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

func (*AdditionRequest) FastReadField1

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

func (*AdditionRequest) FastReadField2

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

func (*AdditionRequest) FastWrite

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

for compatibility

func (*AdditionRequest) FastWriteNocopy

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

func (*AdditionRequest) Field1DeepEqual

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

func (*AdditionRequest) Field2DeepEqual

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

func (*AdditionRequest) GetFirstNum

func (p *AdditionRequest) GetFirstNum() (v string)

func (*AdditionRequest) GetSecondNum

func (p *AdditionRequest) GetSecondNum() (v string)

func (*AdditionRequest) InitDefault

func (p *AdditionRequest) InitDefault()

func (*AdditionRequest) Read

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

func (*AdditionRequest) ReadField1

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

func (*AdditionRequest) ReadField2

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

func (*AdditionRequest) SetFirstNum

func (p *AdditionRequest) SetFirstNum(val string)

func (*AdditionRequest) SetSecondNum

func (p *AdditionRequest) SetSecondNum(val string)

func (*AdditionRequest) String

func (p *AdditionRequest) String() string

func (*AdditionRequest) Write

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

type AdditionResponse

type AdditionResponse struct {
	Sum string `thrift:"Sum,1" frugal:"1,default,string" json:"Sum"`
}
var GatewayAddNumbersResult_Success_DEFAULT *AdditionResponse

func NewAdditionResponse

func NewAdditionResponse() *AdditionResponse

func (*AdditionResponse) BLength

func (p *AdditionResponse) BLength() int

func (*AdditionResponse) DeepEqual

func (p *AdditionResponse) DeepEqual(ano *AdditionResponse) bool

func (*AdditionResponse) FastRead

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

func (*AdditionResponse) FastReadField1

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

func (*AdditionResponse) FastWrite

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

for compatibility

func (*AdditionResponse) FastWriteNocopy

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

func (*AdditionResponse) Field1DeepEqual

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

func (*AdditionResponse) GetSum

func (p *AdditionResponse) GetSum() (v string)

func (*AdditionResponse) InitDefault

func (p *AdditionResponse) InitDefault()

func (*AdditionResponse) Read

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

func (*AdditionResponse) ReadField1

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

func (*AdditionResponse) SetSum

func (p *AdditionResponse) SetSum(val string)

func (*AdditionResponse) String

func (p *AdditionResponse) String() string

func (*AdditionResponse) Write

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

type DivisionRequest

type DivisionRequest struct {
	FirstNum  string `thrift:"FirstNum,1,required" frugal:"1,required,string" json:"FirstNum"`
	SecondNum string `thrift:"SecondNum,2,required" frugal:"2,required,string" json:"SecondNum"`
}
var GatewayDivideNumbersArgs_Req_DEFAULT *DivisionRequest

func NewDivisionRequest

func NewDivisionRequest() *DivisionRequest

func (*DivisionRequest) BLength

func (p *DivisionRequest) BLength() int

func (*DivisionRequest) DeepEqual

func (p *DivisionRequest) DeepEqual(ano *DivisionRequest) bool

func (*DivisionRequest) FastRead

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

func (*DivisionRequest) FastReadField1

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

func (*DivisionRequest) FastReadField2

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

func (*DivisionRequest) FastWrite

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

for compatibility

func (*DivisionRequest) FastWriteNocopy

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

func (*DivisionRequest) Field1DeepEqual

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

func (*DivisionRequest) Field2DeepEqual

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

func (*DivisionRequest) GetFirstNum

func (p *DivisionRequest) GetFirstNum() (v string)

func (*DivisionRequest) GetSecondNum

func (p *DivisionRequest) GetSecondNum() (v string)

func (*DivisionRequest) InitDefault

func (p *DivisionRequest) InitDefault()

func (*DivisionRequest) Read

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

func (*DivisionRequest) ReadField1

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

func (*DivisionRequest) ReadField2

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

func (*DivisionRequest) SetFirstNum

func (p *DivisionRequest) SetFirstNum(val string)

func (*DivisionRequest) SetSecondNum

func (p *DivisionRequest) SetSecondNum(val string)

func (*DivisionRequest) String

func (p *DivisionRequest) String() string

func (*DivisionRequest) Write

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

type DivisionResponse

type DivisionResponse struct {
	Quotient string `thrift:"Quotient,1" frugal:"1,default,string" json:"Quotient"`
}
var GatewayDivideNumbersResult_Success_DEFAULT *DivisionResponse

func NewDivisionResponse

func NewDivisionResponse() *DivisionResponse

func (*DivisionResponse) BLength

func (p *DivisionResponse) BLength() int

func (*DivisionResponse) DeepEqual

func (p *DivisionResponse) DeepEqual(ano *DivisionResponse) bool

func (*DivisionResponse) FastRead

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

func (*DivisionResponse) FastReadField1

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

func (*DivisionResponse) FastWrite

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

for compatibility

func (*DivisionResponse) FastWriteNocopy

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

func (*DivisionResponse) Field1DeepEqual

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

func (*DivisionResponse) GetQuotient

func (p *DivisionResponse) GetQuotient() (v string)

func (*DivisionResponse) InitDefault

func (p *DivisionResponse) InitDefault()

func (*DivisionResponse) Read

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

func (*DivisionResponse) ReadField1

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

func (*DivisionResponse) SetQuotient

func (p *DivisionResponse) SetQuotient(val string)

func (*DivisionResponse) String

func (p *DivisionResponse) String() string

func (*DivisionResponse) Write

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

type Gateway

type Gateway interface {
	AddNumbers(ctx context.Context, req *AdditionRequest) (r *AdditionResponse, err error)

	MultiplyNumbers(ctx context.Context, req *MultiplicationRequest) (r *MultiplicationResponse, err error)

	DivideNumbers(ctx context.Context, req *DivisionRequest) (r *DivisionResponse, err error)
}

type GatewayAddNumbersArgs

type GatewayAddNumbersArgs struct {
	Req *AdditionRequest `thrift:"req,1" frugal:"1,default,AdditionRequest" json:"req"`
}

func NewGatewayAddNumbersArgs

func NewGatewayAddNumbersArgs() *GatewayAddNumbersArgs

func (*GatewayAddNumbersArgs) BLength

func (p *GatewayAddNumbersArgs) BLength() int

func (*GatewayAddNumbersArgs) DeepEqual

func (*GatewayAddNumbersArgs) FastRead

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

func (*GatewayAddNumbersArgs) FastReadField1

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

func (*GatewayAddNumbersArgs) FastWrite

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

for compatibility

func (*GatewayAddNumbersArgs) FastWriteNocopy

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

func (*GatewayAddNumbersArgs) Field1DeepEqual

func (p *GatewayAddNumbersArgs) Field1DeepEqual(src *AdditionRequest) bool

func (*GatewayAddNumbersArgs) GetFirstArgument

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

func (*GatewayAddNumbersArgs) GetReq

func (p *GatewayAddNumbersArgs) GetReq() (v *AdditionRequest)

func (*GatewayAddNumbersArgs) InitDefault

func (p *GatewayAddNumbersArgs) InitDefault()

func (*GatewayAddNumbersArgs) IsSetReq

func (p *GatewayAddNumbersArgs) IsSetReq() bool

func (*GatewayAddNumbersArgs) Read

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

func (*GatewayAddNumbersArgs) ReadField1

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

func (*GatewayAddNumbersArgs) SetReq

func (p *GatewayAddNumbersArgs) SetReq(val *AdditionRequest)

func (*GatewayAddNumbersArgs) String

func (p *GatewayAddNumbersArgs) String() string

func (*GatewayAddNumbersArgs) Write

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

type GatewayAddNumbersResult

type GatewayAddNumbersResult struct {
	Success *AdditionResponse `thrift:"success,0,optional" frugal:"0,optional,AdditionResponse" json:"success,omitempty"`
}

func NewGatewayAddNumbersResult

func NewGatewayAddNumbersResult() *GatewayAddNumbersResult

func (*GatewayAddNumbersResult) BLength

func (p *GatewayAddNumbersResult) BLength() int

func (*GatewayAddNumbersResult) DeepEqual

func (*GatewayAddNumbersResult) FastRead

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

func (*GatewayAddNumbersResult) FastReadField0

func (p *GatewayAddNumbersResult) FastReadField0(buf []byte) (int, error)

func (*GatewayAddNumbersResult) FastWrite

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

for compatibility

func (*GatewayAddNumbersResult) FastWriteNocopy

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

func (*GatewayAddNumbersResult) Field0DeepEqual

func (p *GatewayAddNumbersResult) Field0DeepEqual(src *AdditionResponse) bool

func (*GatewayAddNumbersResult) GetResult

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

func (*GatewayAddNumbersResult) GetSuccess

func (p *GatewayAddNumbersResult) GetSuccess() (v *AdditionResponse)

func (*GatewayAddNumbersResult) InitDefault

func (p *GatewayAddNumbersResult) InitDefault()

func (*GatewayAddNumbersResult) IsSetSuccess

func (p *GatewayAddNumbersResult) IsSetSuccess() bool

func (*GatewayAddNumbersResult) Read

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

func (*GatewayAddNumbersResult) ReadField0

func (p *GatewayAddNumbersResult) ReadField0(iprot thrift.TProtocol) error

func (*GatewayAddNumbersResult) SetSuccess

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

func (*GatewayAddNumbersResult) String

func (p *GatewayAddNumbersResult) String() string

func (*GatewayAddNumbersResult) Write

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

type GatewayClient

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

func NewGatewayClient

func NewGatewayClient(c thrift.TClient) *GatewayClient

func NewGatewayClientProtocol

func NewGatewayClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *GatewayClient

func (*GatewayClient) AddNumbers

func (p *GatewayClient) AddNumbers(ctx context.Context, req *AdditionRequest) (r *AdditionResponse, err error)

func (*GatewayClient) Client_

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

func (*GatewayClient) DivideNumbers

func (p *GatewayClient) DivideNumbers(ctx context.Context, req *DivisionRequest) (r *DivisionResponse, err error)

func (*GatewayClient) MultiplyNumbers

func (p *GatewayClient) MultiplyNumbers(ctx context.Context, req *MultiplicationRequest) (r *MultiplicationResponse, err error)

type GatewayDivideNumbersArgs

type GatewayDivideNumbersArgs struct {
	Req *DivisionRequest `thrift:"req,1" frugal:"1,default,DivisionRequest" json:"req"`
}

func NewGatewayDivideNumbersArgs

func NewGatewayDivideNumbersArgs() *GatewayDivideNumbersArgs

func (*GatewayDivideNumbersArgs) BLength

func (p *GatewayDivideNumbersArgs) BLength() int

func (*GatewayDivideNumbersArgs) DeepEqual

func (*GatewayDivideNumbersArgs) FastRead

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

func (*GatewayDivideNumbersArgs) FastReadField1

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

func (*GatewayDivideNumbersArgs) FastWrite

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

for compatibility

func (*GatewayDivideNumbersArgs) FastWriteNocopy

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

func (*GatewayDivideNumbersArgs) Field1DeepEqual

func (p *GatewayDivideNumbersArgs) Field1DeepEqual(src *DivisionRequest) bool

func (*GatewayDivideNumbersArgs) GetFirstArgument

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

func (*GatewayDivideNumbersArgs) GetReq

func (p *GatewayDivideNumbersArgs) GetReq() (v *DivisionRequest)

func (*GatewayDivideNumbersArgs) InitDefault

func (p *GatewayDivideNumbersArgs) InitDefault()

func (*GatewayDivideNumbersArgs) IsSetReq

func (p *GatewayDivideNumbersArgs) IsSetReq() bool

func (*GatewayDivideNumbersArgs) Read

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

func (*GatewayDivideNumbersArgs) ReadField1

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

func (*GatewayDivideNumbersArgs) SetReq

func (p *GatewayDivideNumbersArgs) SetReq(val *DivisionRequest)

func (*GatewayDivideNumbersArgs) String

func (p *GatewayDivideNumbersArgs) String() string

func (*GatewayDivideNumbersArgs) Write

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

type GatewayDivideNumbersResult

type GatewayDivideNumbersResult struct {
	Success *DivisionResponse `thrift:"success,0,optional" frugal:"0,optional,DivisionResponse" json:"success,omitempty"`
}

func NewGatewayDivideNumbersResult

func NewGatewayDivideNumbersResult() *GatewayDivideNumbersResult

func (*GatewayDivideNumbersResult) BLength

func (p *GatewayDivideNumbersResult) BLength() int

func (*GatewayDivideNumbersResult) DeepEqual

func (*GatewayDivideNumbersResult) FastRead

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

func (*GatewayDivideNumbersResult) FastReadField0

func (p *GatewayDivideNumbersResult) FastReadField0(buf []byte) (int, error)

func (*GatewayDivideNumbersResult) FastWrite

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

for compatibility

func (*GatewayDivideNumbersResult) FastWriteNocopy

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

func (*GatewayDivideNumbersResult) Field0DeepEqual

func (p *GatewayDivideNumbersResult) Field0DeepEqual(src *DivisionResponse) bool

func (*GatewayDivideNumbersResult) GetResult

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

func (*GatewayDivideNumbersResult) GetSuccess

func (p *GatewayDivideNumbersResult) GetSuccess() (v *DivisionResponse)

func (*GatewayDivideNumbersResult) InitDefault

func (p *GatewayDivideNumbersResult) InitDefault()

func (*GatewayDivideNumbersResult) IsSetSuccess

func (p *GatewayDivideNumbersResult) IsSetSuccess() bool

func (*GatewayDivideNumbersResult) Read

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

func (*GatewayDivideNumbersResult) ReadField0

func (p *GatewayDivideNumbersResult) ReadField0(iprot thrift.TProtocol) error

func (*GatewayDivideNumbersResult) SetSuccess

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

func (*GatewayDivideNumbersResult) String

func (p *GatewayDivideNumbersResult) String() string

func (*GatewayDivideNumbersResult) Write

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

type GatewayMultiplyNumbersArgs

type GatewayMultiplyNumbersArgs struct {
	Req *MultiplicationRequest `thrift:"req,1" frugal:"1,default,MultiplicationRequest" json:"req"`
}

func NewGatewayMultiplyNumbersArgs

func NewGatewayMultiplyNumbersArgs() *GatewayMultiplyNumbersArgs

func (*GatewayMultiplyNumbersArgs) BLength

func (p *GatewayMultiplyNumbersArgs) BLength() int

func (*GatewayMultiplyNumbersArgs) DeepEqual

func (*GatewayMultiplyNumbersArgs) FastRead

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

func (*GatewayMultiplyNumbersArgs) FastReadField1

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

func (*GatewayMultiplyNumbersArgs) FastWrite

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

for compatibility

func (*GatewayMultiplyNumbersArgs) FastWriteNocopy

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

func (*GatewayMultiplyNumbersArgs) Field1DeepEqual

func (p *GatewayMultiplyNumbersArgs) Field1DeepEqual(src *MultiplicationRequest) bool

func (*GatewayMultiplyNumbersArgs) GetFirstArgument

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

func (*GatewayMultiplyNumbersArgs) GetReq

func (*GatewayMultiplyNumbersArgs) InitDefault

func (p *GatewayMultiplyNumbersArgs) InitDefault()

func (*GatewayMultiplyNumbersArgs) IsSetReq

func (p *GatewayMultiplyNumbersArgs) IsSetReq() bool

func (*GatewayMultiplyNumbersArgs) Read

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

func (*GatewayMultiplyNumbersArgs) ReadField1

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

func (*GatewayMultiplyNumbersArgs) SetReq

func (*GatewayMultiplyNumbersArgs) String

func (p *GatewayMultiplyNumbersArgs) String() string

func (*GatewayMultiplyNumbersArgs) Write

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

type GatewayMultiplyNumbersResult

type GatewayMultiplyNumbersResult struct {
	Success *MultiplicationResponse `thrift:"success,0,optional" frugal:"0,optional,MultiplicationResponse" json:"success,omitempty"`
}

func NewGatewayMultiplyNumbersResult

func NewGatewayMultiplyNumbersResult() *GatewayMultiplyNumbersResult

func (*GatewayMultiplyNumbersResult) BLength

func (p *GatewayMultiplyNumbersResult) BLength() int

func (*GatewayMultiplyNumbersResult) DeepEqual

func (*GatewayMultiplyNumbersResult) FastRead

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

func (*GatewayMultiplyNumbersResult) FastReadField0

func (p *GatewayMultiplyNumbersResult) FastReadField0(buf []byte) (int, error)

func (*GatewayMultiplyNumbersResult) FastWrite

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

for compatibility

func (*GatewayMultiplyNumbersResult) FastWriteNocopy

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

func (*GatewayMultiplyNumbersResult) Field0DeepEqual

func (p *GatewayMultiplyNumbersResult) Field0DeepEqual(src *MultiplicationResponse) bool

func (*GatewayMultiplyNumbersResult) GetResult

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

func (*GatewayMultiplyNumbersResult) GetSuccess

func (*GatewayMultiplyNumbersResult) InitDefault

func (p *GatewayMultiplyNumbersResult) InitDefault()

func (*GatewayMultiplyNumbersResult) IsSetSuccess

func (p *GatewayMultiplyNumbersResult) IsSetSuccess() bool

func (*GatewayMultiplyNumbersResult) Read

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

func (*GatewayMultiplyNumbersResult) ReadField0

func (p *GatewayMultiplyNumbersResult) ReadField0(iprot thrift.TProtocol) error

func (*GatewayMultiplyNumbersResult) SetSuccess

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

func (*GatewayMultiplyNumbersResult) String

func (*GatewayMultiplyNumbersResult) Write

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

type GatewayProcessor

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

func NewGatewayProcessor

func NewGatewayProcessor(handler Gateway) *GatewayProcessor

func (*GatewayProcessor) AddToProcessorMap

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

func (*GatewayProcessor) GetProcessorFunction

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

func (*GatewayProcessor) Process

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

func (*GatewayProcessor) ProcessorMap

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

type MultiplicationRequest

type MultiplicationRequest struct {
	FirstNum  string `thrift:"FirstNum,1,required" frugal:"1,required,string" json:"FirstNum"`
	SecondNum string `thrift:"SecondNum,2,required" frugal:"2,required,string" json:"SecondNum"`
}
var GatewayMultiplyNumbersArgs_Req_DEFAULT *MultiplicationRequest

func NewMultiplicationRequest

func NewMultiplicationRequest() *MultiplicationRequest

func (*MultiplicationRequest) BLength

func (p *MultiplicationRequest) BLength() int

func (*MultiplicationRequest) DeepEqual

func (*MultiplicationRequest) FastRead

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

func (*MultiplicationRequest) FastReadField1

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

func (*MultiplicationRequest) FastReadField2

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

func (*MultiplicationRequest) FastWrite

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

for compatibility

func (*MultiplicationRequest) FastWriteNocopy

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

func (*MultiplicationRequest) Field1DeepEqual

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

func (*MultiplicationRequest) Field2DeepEqual

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

func (*MultiplicationRequest) GetFirstNum

func (p *MultiplicationRequest) GetFirstNum() (v string)

func (*MultiplicationRequest) GetSecondNum

func (p *MultiplicationRequest) GetSecondNum() (v string)

func (*MultiplicationRequest) InitDefault

func (p *MultiplicationRequest) InitDefault()

func (*MultiplicationRequest) Read

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

func (*MultiplicationRequest) ReadField1

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

func (*MultiplicationRequest) ReadField2

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

func (*MultiplicationRequest) SetFirstNum

func (p *MultiplicationRequest) SetFirstNum(val string)

func (*MultiplicationRequest) SetSecondNum

func (p *MultiplicationRequest) SetSecondNum(val string)

func (*MultiplicationRequest) String

func (p *MultiplicationRequest) String() string

func (*MultiplicationRequest) Write

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

type MultiplicationResponse

type MultiplicationResponse struct {
	Product string `thrift:"Product,1" frugal:"1,default,string" json:"Product"`
}
var GatewayMultiplyNumbersResult_Success_DEFAULT *MultiplicationResponse

func NewMultiplicationResponse

func NewMultiplicationResponse() *MultiplicationResponse

func (*MultiplicationResponse) BLength

func (p *MultiplicationResponse) BLength() int

func (*MultiplicationResponse) DeepEqual

func (*MultiplicationResponse) FastRead

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

func (*MultiplicationResponse) FastReadField1

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

func (*MultiplicationResponse) FastWrite

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

for compatibility

func (*MultiplicationResponse) FastWriteNocopy

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

func (*MultiplicationResponse) Field1DeepEqual

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

func (*MultiplicationResponse) GetProduct

func (p *MultiplicationResponse) GetProduct() (v string)

func (*MultiplicationResponse) InitDefault

func (p *MultiplicationResponse) InitDefault()

func (*MultiplicationResponse) Read

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

func (*MultiplicationResponse) ReadField1

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

func (*MultiplicationResponse) SetProduct

func (p *MultiplicationResponse) SetProduct(val string)

func (*MultiplicationResponse) String

func (p *MultiplicationResponse) String() string

func (*MultiplicationResponse) Write

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

Directories

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

Jump to

Keyboard shortcuts

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