daemon

package
v0.0.0-...-1960156 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2015 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

*

  • Copyright 2015 @ z3q.net.
  • name : mail_queue
  • author : jarryliu
  • date : 2015-07-27 17:06
  • description :
  • history :

Index

Constants

View Source
const (
	CRON_ORDER_SETUP_MINUTE = 3
)

Variables

This section is empty.

Functions

func AddCompletedOrderFunc

func AddCompletedOrderFunc(f DaemonFunc)

添加已完成订单处理函数

func AddNewOrderFunc

func AddNewOrderFunc(f DaemonFunc)

添加新的订单处理函数

func AddTickerFunc

func AddTickerFunc(f DaemonFunc)

添加定时执行任务(默认5秒)

func FlagRun

func FlagRun()

自定义参数运行

func RegisterByName

func RegisterByName(arr []string)

func RegisterService

func RegisterService(name string, service DaemonService)

func Run

func Run(ctx gof.App)

运行

func Start

func Start()

Types

type DaemonFunc

type DaemonFunc func(gof.App)

type DaemonService

type DaemonService func(gof.App)

守护进程服务

Jump to

Keyboard shortcuts

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