Documentation ¶
Index ¶
- Variables
- type Mock
- type MockClient
- type MockProcessor
- func (p *MockProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *MockProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *MockProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *MockProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type MockReq
- func (p *MockReq) GetMsg() string
- func (p *MockReq) GetStrList() []string
- func (p *MockReq) GetStrMap() map[string]string
- func (p *MockReq) Read(iprot thrift.TProtocol) error
- func (p *MockReq) ReadField1(iprot thrift.TProtocol) (err error)
- func (p *MockReq) ReadField2(iprot thrift.TProtocol) (err error)
- func (p *MockReq) ReadField3(iprot thrift.TProtocol) (err error)
- func (p *MockReq) SetMsg(val string)
- func (p *MockReq) SetStrList(val []string)
- func (p *MockReq) SetStrMap(val map[string]string)
- func (p *MockReq) Write(oprot thrift.TProtocol) error
- type MockTestArgs
- func (p *MockTestArgs) GetFirstArgument() interface{}
- func (p *MockTestArgs) GetReq() *MockReq
- func (p *MockTestArgs) IsSetReq() bool
- func (p *MockTestArgs) Read(iprot thrift.TProtocol) error
- func (p *MockTestArgs) ReadField1(iprot thrift.TProtocol) (err error)
- func (p *MockTestArgs) SetReq(val *MockReq)
- func (p *MockTestArgs) Write(oprot thrift.TProtocol) error
- type MockTestResult
- func (p *MockTestResult) GetResult() interface{}
- func (p *MockTestResult) GetSuccess() string
- func (p *MockTestResult) IsSetSuccess() bool
- func (p *MockTestResult) Read(iprot thrift.TProtocol) error
- func (p *MockTestResult) ReadField0(iprot thrift.TProtocol) (err error)
- func (p *MockTestResult) SetSuccess(val *string)
- func (p *MockTestResult) Write(oprot thrift.TProtocol) error
Constants ¶
This section is empty.
Variables ¶
View Source
var MockTestResult_Success_DEFAULT string
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
func NewMockClient ¶
func NewMockClient(c thrift.TClient) *MockClient
func NewMockClientFactory ¶
func NewMockClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *MockClient
func NewMockClientProtocol ¶
func NewMockClientProtocol(t thrift.TTransport, iprot, oprot thrift.TProtocol) *MockClient
func (*MockClient) Client_ ¶
func (p *MockClient) Client_() thrift.TClient
type MockProcessor ¶
type MockProcessor struct {
// contains filtered or unexported fields
}
func NewMockProcessor ¶
func NewMockProcessor(handler Mock) *MockProcessor
func (*MockProcessor) AddToProcessorMap ¶
func (p *MockProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*MockProcessor) GetProcessorFunction ¶
func (p *MockProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*MockProcessor) Process ¶
func (p *MockProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*MockProcessor) ProcessorMap ¶
func (p *MockProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type MockReq ¶
type MockReq struct { Msg string `thrift:"Msg,1" json:"Msg"` StrMap map[string]string `thrift:"strMap,2" json:"strMap"` StrList []string `thrift:"strList,3" json:"strList"` }
var MockTestArgs_Req_DEFAULT *MockReq
func NewMockReq ¶
func NewMockReq() *MockReq
func (*MockReq) GetStrList ¶
func (*MockReq) SetStrList ¶
type MockTestArgs ¶
type MockTestArgs struct {
Req *MockReq `thrift:"req,1" json:"req"`
}
func NewMockTestArgs ¶
func NewMockTestArgs() *MockTestArgs
func (*MockTestArgs) GetFirstArgument ¶
func (p *MockTestArgs) GetFirstArgument() interface{}
func (*MockTestArgs) GetReq ¶
func (p *MockTestArgs) GetReq() *MockReq
func (*MockTestArgs) IsSetReq ¶
func (p *MockTestArgs) IsSetReq() bool
func (*MockTestArgs) ReadField1 ¶
func (p *MockTestArgs) ReadField1(iprot thrift.TProtocol) (err error)
func (*MockTestArgs) SetReq ¶
func (p *MockTestArgs) SetReq(val *MockReq)
type MockTestResult ¶
type MockTestResult struct {
Success *string `thrift:"success,0" json:"success,omitempty"`
}
func NewMockTestResult ¶
func NewMockTestResult() *MockTestResult
func (*MockTestResult) GetResult ¶
func (p *MockTestResult) GetResult() interface{}
func (*MockTestResult) GetSuccess ¶
func (p *MockTestResult) GetSuccess() string
func (*MockTestResult) IsSetSuccess ¶
func (p *MockTestResult) IsSetSuccess() bool
func (*MockTestResult) ReadField0 ¶
func (p *MockTestResult) ReadField0(iprot thrift.TProtocol) (err error)
func (*MockTestResult) SetSuccess ¶
func (p *MockTestResult) SetSuccess(val *string)
Click to show internal directories.
Click to hide internal directories.