Documentation ¶
Index ¶
- type Connection
- func (t *Connection) GetConnStatus() connectivity.State
- func (t *Connection) GetGRPCConn() *grpc.ClientConn
- func (t *Connection) GetId() uint64
- func (t *Connection) GetIdledMilliTimestamp() int64
- func (t *Connection) GetTarget() string
- func (t *Connection) GetUsingStatus() uintptr
- func (t *Connection) GetUsingStatusDesc() string
- func (t *Connection) IsIdleUsingStatus() bool
- type ConnectionPool
- func (t *ConnectionPool) AllocateConnection() (retConn *Connection, retErr error)
- func (t *ConnectionPool) GetBusyConnectionsCount() int32
- func (t *ConnectionPool) GetConnectionsCount() int
- func (t *ConnectionPool) GetIdledConnectionsCount() int32
- func (t *ConnectionPool) GetReadyConnectionsCount() (retCount int)
- func (t *ConnectionPool) GetStatus() uintptr
- func (t *ConnectionPool) GetUsingStatusConnectionsCount(usingStatus uintptr) (retCount int)
- func (t *ConnectionPool) RecycleConnection(conn *Connection) error
- func (t *ConnectionPool) Start() error
- func (t *ConnectionPool) Stop(disableClean bool) error
- type KwArgsConnPool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func (*Connection) GetConnStatus ¶ added in v1.0.1
func (t *Connection) GetConnStatus() connectivity.State
func (*Connection) GetGRPCConn ¶
func (t *Connection) GetGRPCConn() *grpc.ClientConn
func (*Connection) GetId ¶
func (t *Connection) GetId() uint64
func (*Connection) GetIdledMilliTimestamp ¶ added in v1.0.1
func (t *Connection) GetIdledMilliTimestamp() int64
func (*Connection) GetTarget ¶
func (t *Connection) GetTarget() string
func (*Connection) GetUsingStatus ¶ added in v1.0.1
func (t *Connection) GetUsingStatus() uintptr
func (*Connection) GetUsingStatusDesc ¶ added in v1.0.1
func (t *Connection) GetUsingStatusDesc() string
func (*Connection) IsIdleUsingStatus ¶ added in v1.0.1
func (t *Connection) IsIdleUsingStatus() bool
type ConnectionPool ¶
type ConnectionPool struct {
// contains filtered or unexported fields
}
func NewConnectionPool ¶
func NewConnectionPool(kw KwArgsConnPool) (*ConnectionPool, error)
func (*ConnectionPool) AllocateConnection ¶ added in v1.0.1
func (t *ConnectionPool) AllocateConnection() (retConn *Connection, retErr error)
func (*ConnectionPool) GetBusyConnectionsCount ¶ added in v1.0.1
func (t *ConnectionPool) GetBusyConnectionsCount() int32
func (*ConnectionPool) GetConnectionsCount ¶ added in v1.0.1
func (t *ConnectionPool) GetConnectionsCount() int
func (*ConnectionPool) GetIdledConnectionsCount ¶ added in v1.0.1
func (t *ConnectionPool) GetIdledConnectionsCount() int32
func (*ConnectionPool) GetReadyConnectionsCount ¶ added in v1.0.1
func (t *ConnectionPool) GetReadyConnectionsCount() (retCount int)
func (*ConnectionPool) GetStatus ¶ added in v1.0.1
func (t *ConnectionPool) GetStatus() uintptr
func (*ConnectionPool) GetUsingStatusConnectionsCount ¶ added in v1.0.1
func (t *ConnectionPool) GetUsingStatusConnectionsCount(usingStatus uintptr) (retCount int)
func (*ConnectionPool) RecycleConnection ¶
func (t *ConnectionPool) RecycleConnection(conn *Connection) error
func (*ConnectionPool) Start ¶
func (t *ConnectionPool) Start() error
func (*ConnectionPool) Stop ¶
func (t *ConnectionPool) Stop(disableClean bool) error
Click to show internal directories.
Click to hide internal directories.