logic

package
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KEY_JOB_POOL       = "delayer:job_pool"
	PREFIX_JOB_BUCKET  = "delayer:job_bucket:"
	PREFIX_READY_QUEUE = "delayer:ready_queue:"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Timer

type Timer struct {
	Config      utils.Config
	Logger      utils.Logger
	Ticker      *time.Ticker
	Pool        *redis.Pool
	HandleError func(err error, funcName string, data string)
}

定时器类

func (*Timer) Init

func (p *Timer) Init()

初始化

func (*Timer) Start

func (p *Timer) Start()

开始

func (*Timer) Stop

func (p *Timer) Stop()

执行

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL