...
Package common
Overview ▹
Index ▹
Variables
var PrintingHandler = &printingHandler{}
var SimpleHandler = &simpleHandler{}
func GetServerParams ¶
func GetServerParams( host string, port int64, domain_socket string, transport string, protocol string, ssl bool, certPath string, handler thrifttest.ThriftTest) (thrift.TProcessor, thrift.TServerTransport, thrift.TTransportFactory, thrift.TProtocolFactory, error)
func StartClient ¶
func StartClient( host string, port int64, domain_socket string, transport string, protocol string, ssl bool) (client *thrifttest.ThriftTestClient, err error)
type MockThriftTest ¶
Mock of ThriftTest interface
type MockThriftTest struct {
// contains filtered or unexported fields
}
func NewMockThriftTest ¶
func NewMockThriftTest(ctrl *gomock.Controller) *MockThriftTest
func (*MockThriftTest) EXPECT ¶
func (_m *MockThriftTest) EXPECT() *_MockThriftTestRecorder
func (*MockThriftTest) TestBinary ¶
func (_m *MockThriftTest) TestBinary(_param0 []byte) ([]byte, error)
func (*MockThriftTest) TestBool ¶
func (_m *MockThriftTest) TestBool(_param0 bool) (bool, error)
func (*MockThriftTest) TestByte ¶
func (_m *MockThriftTest) TestByte(_param0 int8) (int8, error)
func (*MockThriftTest) TestDouble ¶
func (_m *MockThriftTest) TestDouble(_param0 float64) (float64, error)
func (*MockThriftTest) TestEnum ¶
func (_m *MockThriftTest) TestEnum(_param0 thrifttest.Numberz) (thrifttest.Numberz, error)
func (*MockThriftTest) TestException ¶
func (_m *MockThriftTest) TestException(_param0 string) error
func (*MockThriftTest) TestI32 ¶
func (_m *MockThriftTest) TestI32(_param0 int32) (int32, error)
func (*MockThriftTest) TestI64 ¶
func (_m *MockThriftTest) TestI64(_param0 int64) (int64, error)
func (*MockThriftTest) TestInsanity ¶
func (_m *MockThriftTest) TestInsanity(_param0 *thrifttest.Insanity) (map[thrifttest.UserId]map[thrifttest.Numberz]*thrifttest.Insanity, error)
func (*MockThriftTest) TestList ¶
func (_m *MockThriftTest) TestList(_param0 []int32) ([]int32, error)
func (*MockThriftTest) TestMap ¶
func (_m *MockThriftTest) TestMap(_param0 map[int32]int32) (map[int32]int32, error)
func (*MockThriftTest) TestMapMap ¶
func (_m *MockThriftTest) TestMapMap(_param0 int32) (map[int32]map[int32]int32, error)
func (*MockThriftTest) TestMulti ¶
func (_m *MockThriftTest) TestMulti(_param0 int8, _param1 int32, _param2 int64, _param3 map[int16]string, _param4 thrifttest.Numberz, _param5 thrifttest.UserId) (*thrifttest.Xtruct, error)
func (*MockThriftTest) TestMultiException ¶
func (_m *MockThriftTest) TestMultiException(_param0 string, _param1 string) (*thrifttest.Xtruct, error)
func (*MockThriftTest) TestNest ¶
func (_m *MockThriftTest) TestNest(_param0 *thrifttest.Xtruct2) (*thrifttest.Xtruct2, error)
func (*MockThriftTest) TestOneway ¶
func (_m *MockThriftTest) TestOneway(_param0 int32) error
func (*MockThriftTest) TestSet ¶
func (_m *MockThriftTest) TestSet(_param0 map[int32]struct{}) (map[int32]struct{}, error)
func (*MockThriftTest) TestString ¶
func (_m *MockThriftTest) TestString(_param0 string) (string, error)
func (*MockThriftTest) TestStringMap ¶
func (_m *MockThriftTest) TestStringMap(_param0 map[string]string) (map[string]string, error)
func (*MockThriftTest) TestStruct ¶
func (_m *MockThriftTest) TestStruct(_param0 *thrifttest.Xtruct) (*thrifttest.Xtruct, error)
func (*MockThriftTest) TestTypedef ¶
func (_m *MockThriftTest) TestTypedef(_param0 thrifttest.UserId) (thrifttest.UserId, error)
func (*MockThriftTest) TestVoid ¶
func (_m *MockThriftTest) TestVoid() error