Documentation ¶
Index ¶
- func ClosePool()
- func Init(BlockChainMonitorUrl []string, MaxConnectionNum, InitConnectionNum int)
- type Client
- type EndPoint
- type PoolFactory
- func (f *PoolFactory) ActivateObject(ctx context.Context, object *commonPool.PooledObject) error
- func (f *PoolFactory) DestroyObject(ctx context.Context, object *commonPool.PooledObject) error
- func (f *PoolFactory) GetEndPoint() EndPoint
- func (f *PoolFactory) MakeObject(ctx context.Context) (*commonPool.PooledObject, error)
- func (f *PoolFactory) PassivateObject(ctx context.Context, object *commonPool.PooledObject) error
- func (f *PoolFactory) ValidateObject(ctx context.Context, object *commonPool.PooledObject) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PoolFactory ¶
type PoolFactory struct {
// contains filtered or unexported fields
}
func (*PoolFactory) ActivateObject ¶
func (f *PoolFactory) ActivateObject(ctx context.Context, object *commonPool.PooledObject) error
func (*PoolFactory) DestroyObject ¶
func (f *PoolFactory) DestroyObject(ctx context.Context, object *commonPool.PooledObject) error
func (*PoolFactory) GetEndPoint ¶
func (f *PoolFactory) GetEndPoint() EndPoint
func (*PoolFactory) MakeObject ¶
func (f *PoolFactory) MakeObject(ctx context.Context) (*commonPool.PooledObject, error)
func (*PoolFactory) PassivateObject ¶
func (f *PoolFactory) PassivateObject(ctx context.Context, object *commonPool.PooledObject) error
func (*PoolFactory) ValidateObject ¶
func (f *PoolFactory) ValidateObject(ctx context.Context, object *commonPool.PooledObject) bool
Click to show internal directories.
Click to hide internal directories.