Documentation ¶
Index ¶
- type MockTProtocol
- func (_m *MockTProtocol) EXPECT() *_MockTProtocolRecorder
- func (_m *MockTProtocol) Flush(ctx context.Context) error
- func (_m *MockTProtocol) ReadBinary(ctx context.Context) ([]byte, error)
- func (_m *MockTProtocol) ReadBool(ctx context.Context) (bool, error)
- func (_m *MockTProtocol) ReadByte(ctx context.Context) (int8, error)
- func (_m *MockTProtocol) ReadDouble(ctx context.Context) (float64, error)
- func (_m *MockTProtocol) ReadFieldBegin(ctx context.Context) (string, thrift.TType, int16, error)
- func (_m *MockTProtocol) ReadFieldEnd(ctx context.Context) error
- func (_m *MockTProtocol) ReadI16(ctx context.Context) (int16, error)
- func (_m *MockTProtocol) ReadI32(ctx context.Context) (int32, error)
- func (_m *MockTProtocol) ReadI64(ctx context.Context) (int64, error)
- func (_m *MockTProtocol) ReadListBegin(ctx context.Context) (thrift.TType, int, error)
- func (_m *MockTProtocol) ReadListEnd(ctx context.Context) error
- func (_m *MockTProtocol) ReadMapBegin(ctx context.Context) (thrift.TType, thrift.TType, int, error)
- func (_m *MockTProtocol) ReadMapEnd(ctx context.Context) error
- func (_m *MockTProtocol) ReadMessageBegin(ctx context.Context) (string, thrift.TMessageType, int32, error)
- func (_m *MockTProtocol) ReadMessageEnd(ctx context.Context) error
- func (_m *MockTProtocol) ReadSetBegin(ctx context.Context) (thrift.TType, int, error)
- func (_m *MockTProtocol) ReadSetEnd(ctx context.Context) error
- func (_m *MockTProtocol) ReadString(ctx context.Context) (string, error)
- func (_m *MockTProtocol) ReadStructBegin(ctx context.Context) (string, error)
- func (_m *MockTProtocol) ReadStructEnd(ctx context.Context) error
- func (_m *MockTProtocol) Skip(ctx context.Context, _param0 thrift.TType) error
- func (_m *MockTProtocol) Transport() thrift.TTransport
- func (_m *MockTProtocol) WriteBinary(ctx context.Context, _param0 []byte) error
- func (_m *MockTProtocol) WriteBool(ctx context.Context, _param0 bool) error
- func (_m *MockTProtocol) WriteByte(ctx context.Context, _param0 int8) error
- func (_m *MockTProtocol) WriteDouble(ctx context.Context, _param0 float64) error
- func (_m *MockTProtocol) WriteFieldBegin(ctx context.Context, _param0 string, _param1 thrift.TType, _param2 int16) error
- func (_m *MockTProtocol) WriteFieldEnd(ctx context.Context) error
- func (_m *MockTProtocol) WriteFieldStop(ctx context.Context) error
- func (_m *MockTProtocol) WriteI16(ctx context.Context, _param0 int16) error
- func (_m *MockTProtocol) WriteI32(ctx context.Context, _param0 int32) error
- func (_m *MockTProtocol) WriteI64(ctx context.Context, _param0 int64) error
- func (_m *MockTProtocol) WriteListBegin(ctx context.Context, _param0 thrift.TType, _param1 int) error
- func (_m *MockTProtocol) WriteListEnd(ctx context.Context) error
- func (_m *MockTProtocol) WriteMapBegin(ctx context.Context, _param0 thrift.TType, _param1 thrift.TType, _param2 int) error
- func (_m *MockTProtocol) WriteMapEnd(ctx context.Context) error
- func (_m *MockTProtocol) WriteMessageBegin(ctx context.Context, _param0 string, _param1 thrift.TMessageType, ...) error
- func (_m *MockTProtocol) WriteMessageEnd(ctx context.Context) error
- func (_m *MockTProtocol) WriteSetBegin(ctx context.Context, _param0 thrift.TType, _param1 int) error
- func (_m *MockTProtocol) WriteSetEnd(ctx context.Context) error
- func (_m *MockTProtocol) WriteString(ctx context.Context, _param0 string) error
- func (_m *MockTProtocol) WriteStructBegin(ctx context.Context, _param0 string) error
- func (_m *MockTProtocol) WriteStructEnd(ctx context.Context) error
- type SecondServiceHandler
- type ThriftTestDriver
- type ThriftTestHandler
- func (p *ThriftTestHandler) TestBinary(ctx context.Context, thing []byte) (r []byte, err error)
- func (p *ThriftTestHandler) TestBool(ctx context.Context, thing bool) (r bool, err error)
- func (p *ThriftTestHandler) TestByte(ctx context.Context, thing int8) (r int8, err error)
- func (p *ThriftTestHandler) TestDouble(ctx context.Context, thing float64) (r float64, err error)
- func (p *ThriftTestHandler) TestEnum(ctx context.Context, thing thrifttest.Numberz) (r thrifttest.Numberz, err error)
- func (p *ThriftTestHandler) TestException(ctx context.Context, arg string) (err error)
- func (p *ThriftTestHandler) TestI32(ctx context.Context, thing int32) (r int32, err error)
- func (p *ThriftTestHandler) TestI64(ctx context.Context, thing int64) (r int64, err error)
- func (p *ThriftTestHandler) TestInsanity(ctx context.Context, argument *thrifttest.Insanity) (r map[thrifttest.UserId]map[thrifttest.Numberz]*thrifttest.Insanity, err error)
- func (p *ThriftTestHandler) TestList(ctx context.Context, thing []int32) (r []int32, err error)
- func (p *ThriftTestHandler) TestMap(ctx context.Context, thing map[int32]int32) (r map[int32]int32, err error)
- func (p *ThriftTestHandler) TestMapMap(ctx context.Context, hello int32) (r map[int32]map[int32]int32, err error)
- func (p *ThriftTestHandler) TestMulti(ctx context.Context, arg0 int8, arg1 int32, arg2 int64, arg3 map[int16]string, ...) (r *thrifttest.Xtruct, err error)
- func (p *ThriftTestHandler) TestMultiException(ctx context.Context, arg0 string, arg1 string) (r *thrifttest.Xtruct, err error)
- func (p *ThriftTestHandler) TestNest(ctx context.Context, thing *thrifttest.Xtruct2) (r *thrifttest.Xtruct2, err error)
- func (p *ThriftTestHandler) TestOneway(ctx context.Context, secondsToSleep int32) (err error)
- func (p *ThriftTestHandler) TestSet(ctx context.Context, thing []int32) (r []int32, err error)
- func (p *ThriftTestHandler) TestString(ctx context.Context, thing string) (r string, err error)
- func (p *ThriftTestHandler) TestStringMap(ctx context.Context, thing map[string]string) (r map[string]string, err error)
- func (p *ThriftTestHandler) TestStruct(ctx context.Context, thing *thrifttest.Xtruct) (r *thrifttest.Xtruct, err error)
- func (p *ThriftTestHandler) TestTypedef(ctx context.Context, thing thrifttest.UserId) (r thrifttest.UserId, err error)
- func (p *ThriftTestHandler) TestVoid(ctx context.Context) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockTProtocol ¶
type MockTProtocol struct {
// contains filtered or unexported fields
}
Mock of TProtocol interface
func NewMockTProtocol ¶
func NewMockTProtocol(ctrl *gomock.Controller) *MockTProtocol
func (*MockTProtocol) EXPECT ¶
func (_m *MockTProtocol) EXPECT() *_MockTProtocolRecorder
func (*MockTProtocol) ReadBinary ¶
func (_m *MockTProtocol) ReadBinary(ctx context.Context) ([]byte, error)
func (*MockTProtocol) ReadBool ¶
func (_m *MockTProtocol) ReadBool(ctx context.Context) (bool, error)
func (*MockTProtocol) ReadByte ¶
func (_m *MockTProtocol) ReadByte(ctx context.Context) (int8, error)
func (*MockTProtocol) ReadDouble ¶
func (_m *MockTProtocol) ReadDouble(ctx context.Context) (float64, error)
func (*MockTProtocol) ReadFieldBegin ¶
func (*MockTProtocol) ReadFieldEnd ¶
func (_m *MockTProtocol) ReadFieldEnd(ctx context.Context) error
func (*MockTProtocol) ReadI16 ¶
func (_m *MockTProtocol) ReadI16(ctx context.Context) (int16, error)
func (*MockTProtocol) ReadI32 ¶
func (_m *MockTProtocol) ReadI32(ctx context.Context) (int32, error)
func (*MockTProtocol) ReadI64 ¶
func (_m *MockTProtocol) ReadI64(ctx context.Context) (int64, error)
func (*MockTProtocol) ReadListBegin ¶
func (*MockTProtocol) ReadListEnd ¶
func (_m *MockTProtocol) ReadListEnd(ctx context.Context) error
func (*MockTProtocol) ReadMapBegin ¶
func (*MockTProtocol) ReadMapEnd ¶
func (_m *MockTProtocol) ReadMapEnd(ctx context.Context) error
func (*MockTProtocol) ReadMessageBegin ¶
func (_m *MockTProtocol) ReadMessageBegin(ctx context.Context) (string, thrift.TMessageType, int32, error)
func (*MockTProtocol) ReadMessageEnd ¶
func (_m *MockTProtocol) ReadMessageEnd(ctx context.Context) error
func (*MockTProtocol) ReadSetBegin ¶
func (*MockTProtocol) ReadSetEnd ¶
func (_m *MockTProtocol) ReadSetEnd(ctx context.Context) error
func (*MockTProtocol) ReadString ¶
func (_m *MockTProtocol) ReadString(ctx context.Context) (string, error)
func (*MockTProtocol) ReadStructBegin ¶
func (_m *MockTProtocol) ReadStructBegin(ctx context.Context) (string, error)
func (*MockTProtocol) ReadStructEnd ¶
func (_m *MockTProtocol) ReadStructEnd(ctx context.Context) error
func (*MockTProtocol) Transport ¶
func (_m *MockTProtocol) Transport() thrift.TTransport
func (*MockTProtocol) WriteBinary ¶
func (_m *MockTProtocol) WriteBinary(ctx context.Context, _param0 []byte) error
func (*MockTProtocol) WriteBool ¶
func (_m *MockTProtocol) WriteBool(ctx context.Context, _param0 bool) error
func (*MockTProtocol) WriteByte ¶
func (_m *MockTProtocol) WriteByte(ctx context.Context, _param0 int8) error
func (*MockTProtocol) WriteDouble ¶
func (_m *MockTProtocol) WriteDouble(ctx context.Context, _param0 float64) error
func (*MockTProtocol) WriteFieldBegin ¶
func (*MockTProtocol) WriteFieldEnd ¶
func (_m *MockTProtocol) WriteFieldEnd(ctx context.Context) error
func (*MockTProtocol) WriteFieldStop ¶
func (_m *MockTProtocol) WriteFieldStop(ctx context.Context) error
func (*MockTProtocol) WriteI16 ¶
func (_m *MockTProtocol) WriteI16(ctx context.Context, _param0 int16) error
func (*MockTProtocol) WriteI32 ¶
func (_m *MockTProtocol) WriteI32(ctx context.Context, _param0 int32) error
func (*MockTProtocol) WriteI64 ¶
func (_m *MockTProtocol) WriteI64(ctx context.Context, _param0 int64) error
func (*MockTProtocol) WriteListBegin ¶
func (*MockTProtocol) WriteListEnd ¶
func (_m *MockTProtocol) WriteListEnd(ctx context.Context) error
func (*MockTProtocol) WriteMapBegin ¶
func (*MockTProtocol) WriteMapEnd ¶
func (_m *MockTProtocol) WriteMapEnd(ctx context.Context) error
func (*MockTProtocol) WriteMessageBegin ¶
func (_m *MockTProtocol) WriteMessageBegin(ctx context.Context, _param0 string, _param1 thrift.TMessageType, _param2 int32) error
func (*MockTProtocol) WriteMessageEnd ¶
func (_m *MockTProtocol) WriteMessageEnd(ctx context.Context) error
func (*MockTProtocol) WriteSetBegin ¶
func (*MockTProtocol) WriteSetEnd ¶
func (_m *MockTProtocol) WriteSetEnd(ctx context.Context) error
func (*MockTProtocol) WriteString ¶
func (_m *MockTProtocol) WriteString(ctx context.Context, _param0 string) error
func (*MockTProtocol) WriteStructBegin ¶
func (_m *MockTProtocol) WriteStructBegin(ctx context.Context, _param0 string) error
func (*MockTProtocol) WriteStructEnd ¶
func (_m *MockTProtocol) WriteStructEnd(ctx context.Context) error
type SecondServiceHandler ¶
type SecondServiceHandler struct { }
func NewSecondServiceHandler ¶
func NewSecondServiceHandler() *SecondServiceHandler
func (*SecondServiceHandler) BlahBlah ¶
func (p *SecondServiceHandler) BlahBlah(ctx context.Context) (err error)
func (*SecondServiceHandler) SecondtestString ¶
type ThriftTestDriver ¶
type ThriftTestDriver struct {
// contains filtered or unexported fields
}
func NewThriftTestDriver ¶
func NewThriftTestDriver(t *testing.T, client thrifttest.ThriftTest) *ThriftTestDriver
func (*ThriftTestDriver) Start ¶
func (p *ThriftTestDriver) Start()
type ThriftTestHandler ¶
type ThriftTestHandler struct { }
func NewThriftTestHandler ¶
func NewThriftTestHandler() *ThriftTestHandler
func (*ThriftTestHandler) TestBinary ¶
func (*ThriftTestHandler) TestDouble ¶
func (*ThriftTestHandler) TestEnum ¶
func (p *ThriftTestHandler) TestEnum(ctx context.Context, thing thrifttest.Numberz) (r thrifttest.Numberz, err error)
func (*ThriftTestHandler) TestException ¶
func (p *ThriftTestHandler) TestException(ctx context.Context, arg string) (err error)
func (*ThriftTestHandler) TestInsanity ¶
func (p *ThriftTestHandler) TestInsanity(ctx context.Context, argument *thrifttest.Insanity) (r map[thrifttest.UserId]map[thrifttest.Numberz]*thrifttest.Insanity, err error)
func (*ThriftTestHandler) TestMapMap ¶
func (*ThriftTestHandler) TestMulti ¶
func (p *ThriftTestHandler) TestMulti(ctx context.Context, arg0 int8, arg1 int32, arg2 int64, arg3 map[int16]string, arg4 thrifttest.Numberz, arg5 thrifttest.UserId) (r *thrifttest.Xtruct, err error)
func (*ThriftTestHandler) TestMultiException ¶
func (p *ThriftTestHandler) TestMultiException(ctx context.Context, arg0 string, arg1 string) (r *thrifttest.Xtruct, err error)
func (*ThriftTestHandler) TestNest ¶
func (p *ThriftTestHandler) TestNest(ctx context.Context, thing *thrifttest.Xtruct2) (r *thrifttest.Xtruct2, err error)
func (*ThriftTestHandler) TestOneway ¶
func (p *ThriftTestHandler) TestOneway(ctx context.Context, secondsToSleep int32) (err error)
func (*ThriftTestHandler) TestString ¶
func (*ThriftTestHandler) TestStringMap ¶
func (*ThriftTestHandler) TestStruct ¶
func (p *ThriftTestHandler) TestStruct(ctx context.Context, thing *thrifttest.Xtruct) (r *thrifttest.Xtruct, err error)
func (*ThriftTestHandler) TestTypedef ¶
func (p *ThriftTestHandler) TestTypedef(ctx context.Context, thing thrifttest.UserId) (r thrifttest.UserId, err error)
Click to show internal directories.
Click to hide internal directories.