Documentation
¶
Index ¶
- Variables
- func DayEnd(t time.Time) (time.Time, error)
- func DayStart(t time.Time) (time.Time, error)
- func FormatDatetime(sec int64) string
- func HTTPGet(URL string, timeout int) (err error)
- func ParseDatetime(d string) (int64, error)
- func ParseDatetimeMinute(d string) (int64, error)
- type FileLock
- type GenericPool
- type PortLock
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrObjectNil = errors.New("object is nil.") ErrFetchTimedOut = errors.New("fetch object timeout.") )
Functions ¶
func FormatDatetime ¶
func ParseDatetime ¶
func ParseDatetimeMinute ¶
Types ¶
type GenericPool ¶
type GenericPool interface { Get() (obj interface{}, err error) Put(obj interface{}) error Clear() Close() Len() int }
func NewGenericPool ¶
func NewGenericPool(config poolConfig) (GenericPool, error)
Click to show internal directories.
Click to hide internal directories.