server

package
v0.0.0-...-75bc1fc Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version     = "1.0"
	BuildCommit = ""
	BuildDate   = ""
)

Variables

This section is empty.

Functions

func HandleUserCmd

func HandleUserCmd(cmd string, pidFile string) error

HandleUserCmd use to stop/reload the proxy service

func StartConsole

func StartConsole(confFile, pidFile string, boot func(*config.Config) error, registerSchedule func(*cron.Cron)) error

Start Cron Schedule

func StartHttp

func StartHttp(confFile, pidFile string, boot func(config *config.Config) error, registerRoute func(*gin.Engine)) error

Start proxy with config file

func StartJob

func StartJob(confFile, pidFile string, boot func(*config.Config) error, registerWorker func(*work.Job)) error

Start Job Worker

func Stop

func Stop()

Stop proxy

Types

This section is empty.

Jump to

Keyboard shortcuts

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