mirror of
https://github.com/ouqiang/gocron.git
synced 2024-04-21 12:31:58 +00:00
22 lines
270 B
Go
22 lines
270 B
Go
package pool
|
|
|
|
import "errors"
|
|
|
|
var (
|
|
//ErrClosed 连接池已经关闭Error
|
|
ErrClosed = errors.New("pool is closed")
|
|
)
|
|
|
|
//Pool 基本方法
|
|
type Pool interface {
|
|
Get() (interface{}, error)
|
|
|
|
Put(interface{}) error
|
|
|
|
Close(interface{}) error
|
|
|
|
Release()
|
|
|
|
Len() int
|
|
}
|