Versions in this module Expand all Collapse all v1 v1.0.0 Jan 5, 2022 Changes in this version + func GetTime() int64 + func Init() + func NewWorker(workerId int64) error + func QuitSignal(quitFunc func()) + type Logger struct + Opts *Options + func GetLogger() (ret *Logger) + type Options struct + AppName string + DebugFileName string + ErrorFileName string + InfoFileName string + LogFileDir string + MaxAge int + MaxBackups int + MaxSize int + WarnFileName string + type RedisLock struct + func NewRedisLock(conn *redis.Client, key, val string, timeout time.Duration) *RedisLock + func (lock *RedisLock) GetLockKey() string + func (lock *RedisLock) GetLockVal() string + func (lock *RedisLock) TryLock() (bool, error) + func (lock *RedisLock) UnLock() error + type Worker struct + func GetWorker() *Worker + func (w *Worker) GetId() int64