common

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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) 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 (*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 []int32) ([]int32, 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL