Documentation ¶ Index ¶ Variables type Guard func New(serv *serv.Serv, queueBox *queuebox.QueueBox, client *redis.Client) *Guard func (guard *Guard) Guard() error func (guard *Guard) Info() sth.Result func (guard *Guard) OnStart(context.Context) error func (guard *Guard) OnStop(context.Context) error type Task func NewTask(guard *Guard) *Task func (task *Task) Start() func (task *Task) Stop() Constants ¶ This section is empty. Variables ¶ View Source var RedisMemoryLimit = "limit.redis.memory" RedisMemoryLimit TODO Functions ¶ This section is empty. Types ¶ type Guard ¶ type Guard struct { *serv.Serv *sync.RWMutex // contains filtered or unexported fields } Guard TODO func New ¶ func New(serv *serv.Serv, queueBox *queuebox.QueueBox, client *redis.Client) *Guard New TODO func (*Guard) Guard ¶ func (guard *Guard) Guard() error Guard TODO func (*Guard) Info ¶ func (guard *Guard) Info() sth.Result Info TODO func (*Guard) OnStart ¶ func (guard *Guard) OnStart(context.Context) error OnStart TODO func (*Guard) OnStop ¶ func (guard *Guard) OnStop(context.Context) error OnStop TODO type Task ¶ type Task struct { // contains filtered or unexported fields } Task TODO func NewTask ¶ func NewTask(guard *Guard) *Task NewTask TODO func (*Task) Start ¶ func (task *Task) Start() Start TODO func (*Task) Stop ¶ func (task *Task) Stop() Stop TODO Source Files ¶ View all Source files redisguard.go Click to show internal directories. Click to hide internal directories.