Documentation ¶
Index ¶
- func CreateThriftClient(protocolType, transportType, host, port string) (protocolFactory thrift.TProtocolFactory, transport thrift.TTransport, ...)
- func CreateThriftPool(protocolType, transportType, endpoint string, ...) (*resourcepool.ResourcePool, error)
- func CreateThriftServer(protocolType, transportType, endpoint string, processor thrift.TProcessor) (server *thrift.TSimpleServer, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateThriftClient ¶
func CreateThriftClient(protocolType, transportType, host, port string) ( protocolFactory thrift.TProtocolFactory, transport thrift.TTransport, err error)
CreateThriftServer creates a thrift client.
func CreateThriftPool ¶
func CreateThriftPool(protocolType, transportType, endpoint string, clientFunc func(thrift.TTransport, thrift.TProtocolFactory) interface{}, poolSize int, timeoutSecond int) (*resourcepool.ResourcePool, error)
CreateThriftPool function creates a connection for specified thrift servie.
func CreateThriftServer ¶
func CreateThriftServer(protocolType, transportType, endpoint string, processor thrift.TProcessor) ( server *thrift.TSimpleServer, err error)
CreateThriftServer creates a thrift server.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.