Documentation ¶
Index ¶
- Variables
- func GetServerParams(host string, port int64, domain_socket string, transport string, ...) (thrift.TProcessor, thrift.TServerTransport, thrift.TTransportFactory, ...)
- func StartClient(host string, port int64, domain_socket string, transport string, ...) (client *thrifttest.ThriftTestClient, err error)
- type MockThriftTest
- func (_m *MockThriftTest) EXPECT() *_MockThriftTestRecorder
- func (_m *MockThriftTest) TestBinary(_param0 []byte) ([]byte, error)
- func (_m *MockThriftTest) TestBool(_param0 bool) (bool, error)
- func (_m *MockThriftTest) TestByte(_param0 int8) (int8, error)
- func (_m *MockThriftTest) TestDouble(_param0 float64) (float64, error)
- func (_m *MockThriftTest) TestEnum(_param0 thrifttest.Numberz) (thrifttest.Numberz, error)
- func (_m *MockThriftTest) TestException(_param0 string) error
- func (_m *MockThriftTest) TestI32(_param0 int32) (int32, error)
- func (_m *MockThriftTest) TestI64(_param0 int64) (int64, error)
- func (_m *MockThriftTest) TestInsanity(_param0 *thrifttest.Insanity) (map[thrifttest.UserId]map[thrifttest.Numberz]*thrifttest.Insanity, error)
- func (_m *MockThriftTest) TestList(_param0 []int32) ([]int32, error)
- func (_m *MockThriftTest) TestMap(_param0 map[int32]int32) (map[int32]int32, error)
- func (_m *MockThriftTest) TestMapMap(_param0 int32) (map[int32]map[int32]int32, error)
- func (_m *MockThriftTest) TestMulti(_param0 int8, _param1 int32, _param2 int64, _param3 map[int16]string, ...) (*thrifttest.Xtruct, error)
- func (_m *MockThriftTest) TestMultiException(_param0 string, _param1 string) (*thrifttest.Xtruct, error)
- func (_m *MockThriftTest) TestNest(_param0 *thrifttest.Xtruct2) (*thrifttest.Xtruct2, error)
- func (_m *MockThriftTest) TestOneway(_param0 int32) error
- func (_m *MockThriftTest) TestSet(_param0 []int32) ([]int32, error)
- func (_m *MockThriftTest) TestString(_param0 string) (string, error)
- func (_m *MockThriftTest) TestStringMap(_param0 map[string]string) (map[string]string, error)
- func (_m *MockThriftTest) TestStruct(_param0 *thrifttest.Xtruct) (*thrifttest.Xtruct, error)
- func (_m *MockThriftTest) TestTypedef(_param0 thrifttest.UserId) (thrifttest.UserId, error)
- func (_m *MockThriftTest) TestVoid() error
Constants ¶
This section is empty.
Variables ¶
View Source
var PrintingHandler = &printingHandler{}
View Source
var SimpleHandler = &simpleHandler{}
Functions ¶
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)
Types ¶
type MockThriftTest ¶
type MockThriftTest struct {
// contains filtered or unexported fields
}
Mock of ThriftTest interface
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) 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) 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) TestMapMap ¶
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 []int32) ([]int32, error)
func (*MockThriftTest) TestString ¶
func (_m *MockThriftTest) TestString(_param0 string) (string, error)
func (*MockThriftTest) TestStringMap ¶
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
Click to show internal directories.
Click to hide internal directories.