master

package
v3.4.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2018 License: LGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MasterService  string
	MasterLogPath  string
	MasterOwner    string
	MasterArgs     string
	AppRootDir     string
	AppUseLimit    int    = 0
	AppIdleLimit   int    = 0
	AppQuickAbort  bool   = false
	AppWaitLimit   int    = 10
	AppAccessAllow string = "all"
)

from configure file of the app

View Source
var (
	MasterConfigure    string
	MasterServiceName  string
	MasterServiceType  string
	MasterVerbose      bool
	MasterUnprivileged bool
	//	MasterChroot       bool
	MasterSocketCount int = 1
	Alone             bool
)

from command args

Functions

func NetStart

func NetStart(addrs []string)

func OnAccept

func OnAccept(handler AcceptFunc)

func OnClose

func OnClose(handler CloseFunc)

func OnExit

func OnExit(handler ExitFunc)

func OnInit

func OnInit(handler InitFunc)

func OnPreJail

func OnPreJail(handler PreJailFunc)

func Prepare

func Prepare()

this function can be called automatically in net_service.go or web_service.go to load configure, and it can also be canned in appliction's main function

func WebStart

func WebStart(addrs []string)

Types

type AcceptFunc

type AcceptFunc func(net.Conn)

type CloseFunc

type CloseFunc func(net.Conn)

type Config

type Config struct {
	Entries map[string]string
}

func (Config) GetBool

func (c Config) GetBool(name string) bool

func (Config) GetInt

func (c Config) GetInt(name string) int

func (Config) GetString

func (c Config) GetString(name string) string

func (*Config) InitConfig

func (c *Config) InitConfig(path string)

type ExitFunc

type ExitFunc func()

type InitFunc

type InitFunc func()

type PreJailFunc

type PreJailFunc func()

Jump to

Keyboard shortcuts

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