Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateLargeHTMLFile ¶ added in v0.6.0
GenerateLargeHTMLFile generates a large HTML file with the specified size in MB
func GenerateLargeJSONFile ¶ added in v0.6.0
GenerateLargeJSONFile generates a large JSON file with the specified size in MB
func GenerateLargeTextFile ¶ added in v0.6.0
GenerateLargeTextFile generates a large text file with the specified size in MB
Types ¶
type ConnectionPool ¶
type ConnectionPool struct {
// contains filtered or unexported fields
}
ConnectionPool implements a generic connection pool
func NewConnectionPool ¶
func NewConnectionPool(opts PoolOptions) *ConnectionPool
NewConnectionPool creates a new connection pool
func (*ConnectionPool) Close ¶
func (p *ConnectionPool) Close() error
Close closes all connections in the pool
func (*ConnectionPool) Get ¶
func (p *ConnectionPool) Get(ctx context.Context) (interface{}, error)
Get retrieves a connection from the pool
func (*ConnectionPool) Put ¶
func (p *ConnectionPool) Put(conn interface{})
Put returns a connection to the pool
Click to show internal directories.
Click to hide internal directories.