thriftpool

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

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