Documentation ¶
Index ¶
- Variables
- type Gateway
- type GatewayAddNumbersArgs
- func (p *GatewayAddNumbersArgs) GetReq() (v *management.AdditionRequest)
- 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) String() string
- func (p *GatewayAddNumbersArgs) Write(oprot thrift.TProtocol) (err error)
- type GatewayAddNumbersResult
- func (p *GatewayAddNumbersResult) GetSuccess() (v *management.AdditionResponse)
- 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) String() string
- func (p *GatewayAddNumbersResult) Write(oprot thrift.TProtocol) (err error)
- type GatewayClient
- func (p *GatewayClient) AddNumbers(ctx context.Context, req *management.AdditionRequest) (r *management.AdditionResponse, err error)
- func (p *GatewayClient) Client_() thrift.TClient
- func (p *GatewayClient) DivideNumbers(ctx context.Context, req *management1.DivisionRequest) (r *management1.DivisionResponse, err error)
- func (p *GatewayClient) MultiplyNumbers(ctx context.Context, req *management0.MultiplicationRequest) (r *management0.MultiplicationResponse, err error)
- func (p *GatewayClient) Update(ctx context.Context, req *UpdateReq) (r *UpdateResp, err error)
- type GatewayDivideNumbersArgs
- func (p *GatewayDivideNumbersArgs) GetReq() (v *management1.DivisionRequest)
- 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) String() string
- func (p *GatewayDivideNumbersArgs) Write(oprot thrift.TProtocol) (err error)
- type GatewayDivideNumbersResult
- func (p *GatewayDivideNumbersResult) GetSuccess() (v *management1.DivisionResponse)
- 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) String() string
- func (p *GatewayDivideNumbersResult) Write(oprot thrift.TProtocol) (err error)
- type GatewayMultiplyNumbersArgs
- func (p *GatewayMultiplyNumbersArgs) GetReq() (v *management0.MultiplicationRequest)
- 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) String() string
- func (p *GatewayMultiplyNumbersArgs) Write(oprot thrift.TProtocol) (err error)
- type GatewayMultiplyNumbersResult
- func (p *GatewayMultiplyNumbersResult) GetSuccess() (v *management0.MultiplicationResponse)
- 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) 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 GatewayUpdateArgs
- func (p *GatewayUpdateArgs) GetReq() (v *UpdateReq)
- func (p *GatewayUpdateArgs) IsSetReq() bool
- func (p *GatewayUpdateArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *GatewayUpdateArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *GatewayUpdateArgs) String() string
- func (p *GatewayUpdateArgs) Write(oprot thrift.TProtocol) (err error)
- type GatewayUpdateResult
- func (p *GatewayUpdateResult) GetSuccess() (v *UpdateResp)
- func (p *GatewayUpdateResult) IsSetSuccess() bool
- func (p *GatewayUpdateResult) Read(iprot thrift.TProtocol) (err error)
- func (p *GatewayUpdateResult) ReadField0(iprot thrift.TProtocol) error
- func (p *GatewayUpdateResult) String() string
- func (p *GatewayUpdateResult) Write(oprot thrift.TProtocol) (err error)
- type UpdateReq
- type UpdateResp
- func (p *UpdateResp) GetMessage() (v string)
- func (p *UpdateResp) GetSuccess() (v bool)
- func (p *UpdateResp) Read(iprot thrift.TProtocol) (err error)
- func (p *UpdateResp) ReadField1(iprot thrift.TProtocol) error
- func (p *UpdateResp) ReadField2(iprot thrift.TProtocol) error
- func (p *UpdateResp) String() string
- func (p *UpdateResp) Write(oprot thrift.TProtocol) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var GatewayAddNumbersArgs_Req_DEFAULT *management.AdditionRequest
View Source
var GatewayAddNumbersResult_Success_DEFAULT *management.AdditionResponse
View Source
var GatewayDivideNumbersArgs_Req_DEFAULT *management1.DivisionRequest
View Source
var GatewayDivideNumbersResult_Success_DEFAULT *management1.DivisionResponse
View Source
var GatewayMultiplyNumbersArgs_Req_DEFAULT *management0.MultiplicationRequest
View Source
var GatewayMultiplyNumbersResult_Success_DEFAULT *management0.MultiplicationResponse
Functions ¶
This section is empty.
Types ¶
type Gateway ¶
type Gateway interface { AddNumbers(ctx context.Context, req *management.AdditionRequest) (r *management.AdditionResponse, err error) MultiplyNumbers(ctx context.Context, req *management0.MultiplicationRequest) (r *management0.MultiplicationResponse, err error) DivideNumbers(ctx context.Context, req *management1.DivisionRequest) (r *management1.DivisionResponse, err error) Update(ctx context.Context, req *UpdateReq) (r *UpdateResp, err error) }
type GatewayAddNumbersArgs ¶
type GatewayAddNumbersArgs struct {
Req *management.AdditionRequest `thrift:"req,1"`
}
func NewGatewayAddNumbersArgs ¶
func NewGatewayAddNumbersArgs() *GatewayAddNumbersArgs
func (*GatewayAddNumbersArgs) GetReq ¶
func (p *GatewayAddNumbersArgs) GetReq() (v *management.AdditionRequest)
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) String ¶
func (p *GatewayAddNumbersArgs) String() string
type GatewayAddNumbersResult ¶
type GatewayAddNumbersResult struct {
Success *management.AdditionResponse `thrift:"success,0,optional"`
}
func NewGatewayAddNumbersResult ¶
func NewGatewayAddNumbersResult() *GatewayAddNumbersResult
func (*GatewayAddNumbersResult) GetSuccess ¶
func (p *GatewayAddNumbersResult) GetSuccess() (v *management.AdditionResponse)
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) 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 *management.AdditionRequest) (r *management.AdditionResponse, err error)
func (*GatewayClient) Client_ ¶
func (p *GatewayClient) Client_() thrift.TClient
func (*GatewayClient) DivideNumbers ¶
func (p *GatewayClient) DivideNumbers(ctx context.Context, req *management1.DivisionRequest) (r *management1.DivisionResponse, err error)
func (*GatewayClient) MultiplyNumbers ¶
func (p *GatewayClient) MultiplyNumbers(ctx context.Context, req *management0.MultiplicationRequest) (r *management0.MultiplicationResponse, err error)
func (*GatewayClient) Update ¶
func (p *GatewayClient) Update(ctx context.Context, req *UpdateReq) (r *UpdateResp, err error)
type GatewayDivideNumbersArgs ¶
type GatewayDivideNumbersArgs struct {
Req *management1.DivisionRequest `thrift:"req,1"`
}
func NewGatewayDivideNumbersArgs ¶
func NewGatewayDivideNumbersArgs() *GatewayDivideNumbersArgs
func (*GatewayDivideNumbersArgs) GetReq ¶
func (p *GatewayDivideNumbersArgs) GetReq() (v *management1.DivisionRequest)
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) String ¶
func (p *GatewayDivideNumbersArgs) String() string
type GatewayDivideNumbersResult ¶
type GatewayDivideNumbersResult struct {
Success *management1.DivisionResponse `thrift:"success,0,optional"`
}
func NewGatewayDivideNumbersResult ¶
func NewGatewayDivideNumbersResult() *GatewayDivideNumbersResult
func (*GatewayDivideNumbersResult) GetSuccess ¶
func (p *GatewayDivideNumbersResult) GetSuccess() (v *management1.DivisionResponse)
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) String ¶
func (p *GatewayDivideNumbersResult) String() string
type GatewayMultiplyNumbersArgs ¶
type GatewayMultiplyNumbersArgs struct {
Req *management0.MultiplicationRequest `thrift:"req,1"`
}
func NewGatewayMultiplyNumbersArgs ¶
func NewGatewayMultiplyNumbersArgs() *GatewayMultiplyNumbersArgs
func (*GatewayMultiplyNumbersArgs) GetReq ¶
func (p *GatewayMultiplyNumbersArgs) GetReq() (v *management0.MultiplicationRequest)
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) String ¶
func (p *GatewayMultiplyNumbersArgs) String() string
type GatewayMultiplyNumbersResult ¶
type GatewayMultiplyNumbersResult struct {
Success *management0.MultiplicationResponse `thrift:"success,0,optional"`
}
func NewGatewayMultiplyNumbersResult ¶
func NewGatewayMultiplyNumbersResult() *GatewayMultiplyNumbersResult
func (*GatewayMultiplyNumbersResult) GetSuccess ¶
func (p *GatewayMultiplyNumbersResult) GetSuccess() (v *management0.MultiplicationResponse)
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) 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 GatewayUpdateArgs ¶
type GatewayUpdateArgs struct {
Req *UpdateReq `thrift:"req,1"`
}
func NewGatewayUpdateArgs ¶
func NewGatewayUpdateArgs() *GatewayUpdateArgs
func (*GatewayUpdateArgs) GetReq ¶
func (p *GatewayUpdateArgs) GetReq() (v *UpdateReq)
func (*GatewayUpdateArgs) IsSetReq ¶
func (p *GatewayUpdateArgs) IsSetReq() bool
func (*GatewayUpdateArgs) Read ¶
func (p *GatewayUpdateArgs) Read(iprot thrift.TProtocol) (err error)
func (*GatewayUpdateArgs) ReadField1 ¶
func (p *GatewayUpdateArgs) ReadField1(iprot thrift.TProtocol) error
func (*GatewayUpdateArgs) String ¶
func (p *GatewayUpdateArgs) String() string
type GatewayUpdateResult ¶
type GatewayUpdateResult struct {
Success *UpdateResp `thrift:"success,0,optional"`
}
func NewGatewayUpdateResult ¶
func NewGatewayUpdateResult() *GatewayUpdateResult
func (*GatewayUpdateResult) GetSuccess ¶
func (p *GatewayUpdateResult) GetSuccess() (v *UpdateResp)
func (*GatewayUpdateResult) IsSetSuccess ¶
func (p *GatewayUpdateResult) IsSetSuccess() bool
func (*GatewayUpdateResult) Read ¶
func (p *GatewayUpdateResult) Read(iprot thrift.TProtocol) (err error)
func (*GatewayUpdateResult) ReadField0 ¶
func (p *GatewayUpdateResult) ReadField0(iprot thrift.TProtocol) error
func (*GatewayUpdateResult) String ¶
func (p *GatewayUpdateResult) String() string
type UpdateReq ¶
type UpdateReq struct {
Idl string `thrift:"idl,1" form:"idl" json:"idl"`
}
var GatewayUpdateArgs_Req_DEFAULT *UpdateReq
func NewUpdateReq ¶
func NewUpdateReq() *UpdateReq
type UpdateResp ¶
type UpdateResp struct { Success bool `thrift:"success,1" form:"success" json:"success"` Message string `thrift:"message,2" form:"message" json:"message"` }
var GatewayUpdateResult_Success_DEFAULT *UpdateResp
func NewUpdateResp ¶
func NewUpdateResp() *UpdateResp
func (*UpdateResp) GetMessage ¶
func (p *UpdateResp) GetMessage() (v string)
func (*UpdateResp) GetSuccess ¶
func (p *UpdateResp) GetSuccess() (v bool)
func (*UpdateResp) ReadField1 ¶
func (p *UpdateResp) ReadField1(iprot thrift.TProtocol) error
func (*UpdateResp) ReadField2 ¶
func (p *UpdateResp) ReadField2(iprot thrift.TProtocol) error
func (*UpdateResp) String ¶
func (p *UpdateResp) String() string
Click to show internal directories.
Click to hide internal directories.