package
Version:
v1.9.7
Opens a new window with list of versions in this module.
Published: Sep 23, 2024
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
InitialCap int
MaxCap int
Factory func() (interface{}, error)
Close func(interface{}) error
Ping func(interface{}) error
IdleTimeout time.Duration
}
Config 连接池相关配置
type Pool interface {
Get() (interface{}, error)
Put(interface{}) error
Close(interface{}) error
Release()
Len() int
Ping(interface{}) error
}
Pool 基本方法
Source Files
¶
Click to show internal directories.
Click to hide internal directories.