Documentation ¶
Index ¶
- Variables
- type AdditionRequest
- func (p *AdditionRequest) BLength() int
- func (p *AdditionRequest) DeepEqual(ano *AdditionRequest) bool
- func (p *AdditionRequest) FastRead(buf []byte) (int, error)
- func (p *AdditionRequest) FastReadField1(buf []byte) (int, error)
- func (p *AdditionRequest) FastReadField2(buf []byte) (int, error)
- func (p *AdditionRequest) FastWrite(buf []byte) int
- func (p *AdditionRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *AdditionRequest) Field1DeepEqual(src string) bool
- func (p *AdditionRequest) Field2DeepEqual(src string) bool
- func (p *AdditionRequest) GetFirstNum() (v string)
- func (p *AdditionRequest) GetSecondNum() (v string)
- func (p *AdditionRequest) InitDefault()
- func (p *AdditionRequest) Read(iprot thrift.TProtocol) (err error)
- func (p *AdditionRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *AdditionRequest) ReadField2(iprot thrift.TProtocol) error
- func (p *AdditionRequest) SetFirstNum(val string)
- func (p *AdditionRequest) SetSecondNum(val string)
- func (p *AdditionRequest) String() string
- func (p *AdditionRequest) Write(oprot thrift.TProtocol) (err error)
- type AdditionResponse
- func (p *AdditionResponse) BLength() int
- func (p *AdditionResponse) DeepEqual(ano *AdditionResponse) bool
- func (p *AdditionResponse) FastRead(buf []byte) (int, error)
- func (p *AdditionResponse) FastReadField1(buf []byte) (int, error)
- func (p *AdditionResponse) FastWrite(buf []byte) int
- func (p *AdditionResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *AdditionResponse) Field1DeepEqual(src string) bool
- func (p *AdditionResponse) GetSum() (v string)
- func (p *AdditionResponse) InitDefault()
- func (p *AdditionResponse) Read(iprot thrift.TProtocol) (err error)
- func (p *AdditionResponse) ReadField1(iprot thrift.TProtocol) error
- func (p *AdditionResponse) SetSum(val string)
- func (p *AdditionResponse) String() string
- func (p *AdditionResponse) Write(oprot thrift.TProtocol) (err error)
- type DivisionRequest
- func (p *DivisionRequest) BLength() int
- func (p *DivisionRequest) DeepEqual(ano *DivisionRequest) bool
- func (p *DivisionRequest) FastRead(buf []byte) (int, error)
- func (p *DivisionRequest) FastReadField1(buf []byte) (int, error)
- func (p *DivisionRequest) FastReadField2(buf []byte) (int, error)
- func (p *DivisionRequest) FastWrite(buf []byte) int
- func (p *DivisionRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *DivisionRequest) Field1DeepEqual(src string) bool
- func (p *DivisionRequest) Field2DeepEqual(src string) bool
- func (p *DivisionRequest) GetFirstNum() (v string)
- func (p *DivisionRequest) GetSecondNum() (v string)
- func (p *DivisionRequest) InitDefault()
- func (p *DivisionRequest) Read(iprot thrift.TProtocol) (err error)
- func (p *DivisionRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *DivisionRequest) ReadField2(iprot thrift.TProtocol) error
- func (p *DivisionRequest) SetFirstNum(val string)
- func (p *DivisionRequest) SetSecondNum(val string)
- func (p *DivisionRequest) String() string
- func (p *DivisionRequest) Write(oprot thrift.TProtocol) (err error)
- type DivisionResponse
- func (p *DivisionResponse) BLength() int
- func (p *DivisionResponse) DeepEqual(ano *DivisionResponse) bool
- func (p *DivisionResponse) FastRead(buf []byte) (int, error)
- func (p *DivisionResponse) FastReadField1(buf []byte) (int, error)
- func (p *DivisionResponse) FastWrite(buf []byte) int
- func (p *DivisionResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *DivisionResponse) Field1DeepEqual(src string) bool
- func (p *DivisionResponse) GetQuotient() (v string)
- func (p *DivisionResponse) InitDefault()
- func (p *DivisionResponse) Read(iprot thrift.TProtocol) (err error)
- func (p *DivisionResponse) ReadField1(iprot thrift.TProtocol) error
- func (p *DivisionResponse) SetQuotient(val string)
- func (p *DivisionResponse) String() string
- func (p *DivisionResponse) Write(oprot thrift.TProtocol) (err error)
- type Gateway
- type GatewayAddNumbersArgs
- func (p *GatewayAddNumbersArgs) BLength() int
- func (p *GatewayAddNumbersArgs) DeepEqual(ano *GatewayAddNumbersArgs) bool
- func (p *GatewayAddNumbersArgs) FastRead(buf []byte) (int, error)
- func (p *GatewayAddNumbersArgs) FastReadField1(buf []byte) (int, error)
- func (p *GatewayAddNumbersArgs) FastWrite(buf []byte) int
- func (p *GatewayAddNumbersArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *GatewayAddNumbersArgs) Field1DeepEqual(src *AdditionRequest) bool
- func (p *GatewayAddNumbersArgs) GetFirstArgument() interface{}
- func (p *GatewayAddNumbersArgs) GetReq() (v *AdditionRequest)
- func (p *GatewayAddNumbersArgs) InitDefault()
- func (p *GatewayAddNumbersArgs) IsSetReq() bool
- func (p *GatewayAddNumbersArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *GatewayAddNumbersArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *GatewayAddNumbersArgs) SetReq(val *AdditionRequest)
- func (p *GatewayAddNumbersArgs) String() string
- func (p *GatewayAddNumbersArgs) Write(oprot thrift.TProtocol) (err error)
- type GatewayAddNumbersResult
- func (p *GatewayAddNumbersResult) BLength() int
- func (p *GatewayAddNumbersResult) DeepEqual(ano *GatewayAddNumbersResult) bool
- func (p *GatewayAddNumbersResult) FastRead(buf []byte) (int, error)
- func (p *GatewayAddNumbersResult) FastReadField0(buf []byte) (int, error)
- func (p *GatewayAddNumbersResult) FastWrite(buf []byte) int
- func (p *GatewayAddNumbersResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *GatewayAddNumbersResult) Field0DeepEqual(src *AdditionResponse) bool
- func (p *GatewayAddNumbersResult) GetResult() interface{}
- func (p *GatewayAddNumbersResult) GetSuccess() (v *AdditionResponse)
- func (p *GatewayAddNumbersResult) InitDefault()
- func (p *GatewayAddNumbersResult) IsSetSuccess() bool
- func (p *GatewayAddNumbersResult) Read(iprot thrift.TProtocol) (err error)
- func (p *GatewayAddNumbersResult) ReadField0(iprot thrift.TProtocol) error
- func (p *GatewayAddNumbersResult) SetSuccess(x interface{})
- func (p *GatewayAddNumbersResult) String() string
- func (p *GatewayAddNumbersResult) Write(oprot thrift.TProtocol) (err error)
- type GatewayClient
- func (p *GatewayClient) AddNumbers(ctx context.Context, req *AdditionRequest) (r *AdditionResponse, err error)
- func (p *GatewayClient) Client_() thrift.TClient
- func (p *GatewayClient) DivideNumbers(ctx context.Context, req *DivisionRequest) (r *DivisionResponse, err error)
- func (p *GatewayClient) MultiplyNumbers(ctx context.Context, req *MultiplicationRequest) (r *MultiplicationResponse, err error)
- type GatewayDivideNumbersArgs
- func (p *GatewayDivideNumbersArgs) BLength() int
- func (p *GatewayDivideNumbersArgs) DeepEqual(ano *GatewayDivideNumbersArgs) bool
- func (p *GatewayDivideNumbersArgs) FastRead(buf []byte) (int, error)
- func (p *GatewayDivideNumbersArgs) FastReadField1(buf []byte) (int, error)
- func (p *GatewayDivideNumbersArgs) FastWrite(buf []byte) int
- func (p *GatewayDivideNumbersArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *GatewayDivideNumbersArgs) Field1DeepEqual(src *DivisionRequest) bool
- func (p *GatewayDivideNumbersArgs) GetFirstArgument() interface{}
- func (p *GatewayDivideNumbersArgs) GetReq() (v *DivisionRequest)
- func (p *GatewayDivideNumbersArgs) InitDefault()
- func (p *GatewayDivideNumbersArgs) IsSetReq() bool
- func (p *GatewayDivideNumbersArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *GatewayDivideNumbersArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *GatewayDivideNumbersArgs) SetReq(val *DivisionRequest)
- func (p *GatewayDivideNumbersArgs) String() string
- func (p *GatewayDivideNumbersArgs) Write(oprot thrift.TProtocol) (err error)
- type GatewayDivideNumbersResult
- func (p *GatewayDivideNumbersResult) BLength() int
- func (p *GatewayDivideNumbersResult) DeepEqual(ano *GatewayDivideNumbersResult) bool
- func (p *GatewayDivideNumbersResult) FastRead(buf []byte) (int, error)
- func (p *GatewayDivideNumbersResult) FastReadField0(buf []byte) (int, error)
- func (p *GatewayDivideNumbersResult) FastWrite(buf []byte) int
- func (p *GatewayDivideNumbersResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *GatewayDivideNumbersResult) Field0DeepEqual(src *DivisionResponse) bool
- func (p *GatewayDivideNumbersResult) GetResult() interface{}
- func (p *GatewayDivideNumbersResult) GetSuccess() (v *DivisionResponse)
- func (p *GatewayDivideNumbersResult) InitDefault()
- func (p *GatewayDivideNumbersResult) IsSetSuccess() bool
- func (p *GatewayDivideNumbersResult) Read(iprot thrift.TProtocol) (err error)
- func (p *GatewayDivideNumbersResult) ReadField0(iprot thrift.TProtocol) error
- func (p *GatewayDivideNumbersResult) SetSuccess(x interface{})
- func (p *GatewayDivideNumbersResult) String() string
- func (p *GatewayDivideNumbersResult) Write(oprot thrift.TProtocol) (err error)
- type GatewayMultiplyNumbersArgs
- func (p *GatewayMultiplyNumbersArgs) BLength() int
- func (p *GatewayMultiplyNumbersArgs) DeepEqual(ano *GatewayMultiplyNumbersArgs) bool
- func (p *GatewayMultiplyNumbersArgs) FastRead(buf []byte) (int, error)
- func (p *GatewayMultiplyNumbersArgs) FastReadField1(buf []byte) (int, error)
- func (p *GatewayMultiplyNumbersArgs) FastWrite(buf []byte) int
- func (p *GatewayMultiplyNumbersArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *GatewayMultiplyNumbersArgs) Field1DeepEqual(src *MultiplicationRequest) bool
- func (p *GatewayMultiplyNumbersArgs) GetFirstArgument() interface{}
- func (p *GatewayMultiplyNumbersArgs) GetReq() (v *MultiplicationRequest)
- func (p *GatewayMultiplyNumbersArgs) InitDefault()
- func (p *GatewayMultiplyNumbersArgs) IsSetReq() bool
- func (p *GatewayMultiplyNumbersArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *GatewayMultiplyNumbersArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *GatewayMultiplyNumbersArgs) SetReq(val *MultiplicationRequest)
- func (p *GatewayMultiplyNumbersArgs) String() string
- func (p *GatewayMultiplyNumbersArgs) Write(oprot thrift.TProtocol) (err error)
- type GatewayMultiplyNumbersResult
- func (p *GatewayMultiplyNumbersResult) BLength() int
- func (p *GatewayMultiplyNumbersResult) DeepEqual(ano *GatewayMultiplyNumbersResult) bool
- func (p *GatewayMultiplyNumbersResult) FastRead(buf []byte) (int, error)
- func (p *GatewayMultiplyNumbersResult) FastReadField0(buf []byte) (int, error)
- func (p *GatewayMultiplyNumbersResult) FastWrite(buf []byte) int
- func (p *GatewayMultiplyNumbersResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *GatewayMultiplyNumbersResult) Field0DeepEqual(src *MultiplicationResponse) bool
- func (p *GatewayMultiplyNumbersResult) GetResult() interface{}
- func (p *GatewayMultiplyNumbersResult) GetSuccess() (v *MultiplicationResponse)
- func (p *GatewayMultiplyNumbersResult) InitDefault()
- func (p *GatewayMultiplyNumbersResult) IsSetSuccess() bool
- func (p *GatewayMultiplyNumbersResult) Read(iprot thrift.TProtocol) (err error)
- func (p *GatewayMultiplyNumbersResult) ReadField0(iprot thrift.TProtocol) error
- func (p *GatewayMultiplyNumbersResult) SetSuccess(x interface{})
- func (p *GatewayMultiplyNumbersResult) String() string
- func (p *GatewayMultiplyNumbersResult) Write(oprot thrift.TProtocol) (err error)
- type GatewayProcessor
- func (p *GatewayProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *GatewayProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *GatewayProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *GatewayProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type MultiplicationRequest
- func (p *MultiplicationRequest) BLength() int
- func (p *MultiplicationRequest) DeepEqual(ano *MultiplicationRequest) bool
- func (p *MultiplicationRequest) FastRead(buf []byte) (int, error)
- func (p *MultiplicationRequest) FastReadField1(buf []byte) (int, error)
- func (p *MultiplicationRequest) FastReadField2(buf []byte) (int, error)
- func (p *MultiplicationRequest) FastWrite(buf []byte) int
- func (p *MultiplicationRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *MultiplicationRequest) Field1DeepEqual(src string) bool
- func (p *MultiplicationRequest) Field2DeepEqual(src string) bool
- func (p *MultiplicationRequest) GetFirstNum() (v string)
- func (p *MultiplicationRequest) GetSecondNum() (v string)
- func (p *MultiplicationRequest) InitDefault()
- func (p *MultiplicationRequest) Read(iprot thrift.TProtocol) (err error)
- func (p *MultiplicationRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *MultiplicationRequest) ReadField2(iprot thrift.TProtocol) error
- func (p *MultiplicationRequest) SetFirstNum(val string)
- func (p *MultiplicationRequest) SetSecondNum(val string)
- func (p *MultiplicationRequest) String() string
- func (p *MultiplicationRequest) Write(oprot thrift.TProtocol) (err error)
- type MultiplicationResponse
- func (p *MultiplicationResponse) BLength() int
- func (p *MultiplicationResponse) DeepEqual(ano *MultiplicationResponse) bool
- func (p *MultiplicationResponse) FastRead(buf []byte) (int, error)
- func (p *MultiplicationResponse) FastReadField1(buf []byte) (int, error)
- func (p *MultiplicationResponse) FastWrite(buf []byte) int
- func (p *MultiplicationResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *MultiplicationResponse) Field1DeepEqual(src string) bool
- func (p *MultiplicationResponse) GetProduct() (v string)
- func (p *MultiplicationResponse) InitDefault()
- func (p *MultiplicationResponse) Read(iprot thrift.TProtocol) (err error)
- func (p *MultiplicationResponse) ReadField1(iprot thrift.TProtocol) error
- func (p *MultiplicationResponse) SetProduct(val string)
- func (p *MultiplicationResponse) String() string
- func (p *MultiplicationResponse) Write(oprot thrift.TProtocol) (err error)
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) 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) 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
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) 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) 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
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) 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) 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
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) 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) 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
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 (p *GatewayAddNumbersArgs) DeepEqual(ano *GatewayAddNumbersArgs) bool
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
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 (p *GatewayAddNumbersResult) DeepEqual(ano *GatewayAddNumbersResult) bool
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
type GatewayClient ¶
type GatewayClient struct {
// contains filtered or unexported fields
}
func NewGatewayClient ¶
func NewGatewayClient(c thrift.TClient) *GatewayClient
func NewGatewayClientFactory ¶
func NewGatewayClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *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 (p *GatewayDivideNumbersArgs) DeepEqual(ano *GatewayDivideNumbersArgs) bool
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
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 (p *GatewayDivideNumbersResult) DeepEqual(ano *GatewayDivideNumbersResult) bool
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
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 (p *GatewayMultiplyNumbersArgs) DeepEqual(ano *GatewayMultiplyNumbersArgs) bool
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 (p *GatewayMultiplyNumbersArgs) GetReq() (v *MultiplicationRequest)
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 (p *GatewayMultiplyNumbersArgs) SetReq(val *MultiplicationRequest)
func (*GatewayMultiplyNumbersArgs) String ¶
func (p *GatewayMultiplyNumbersArgs) String() string
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 (p *GatewayMultiplyNumbersResult) DeepEqual(ano *GatewayMultiplyNumbersResult) bool
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 (p *GatewayMultiplyNumbersResult) GetSuccess() (v *MultiplicationResponse)
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 (p *GatewayMultiplyNumbersResult) String() string
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 (p *MultiplicationRequest) DeepEqual(ano *MultiplicationRequest) bool
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
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 (p *MultiplicationResponse) DeepEqual(ano *MultiplicationResponse) bool
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
Click to show internal directories.
Click to hide internal directories.