Documentation ¶
Index ¶
- Constants
- Variables
- func GetConfigDir() string
- func GetNodeId() string
- func GetService(serviceName string) service.IService
- func KillProcess(processId int)
- func OpenProfilerReport(interval time.Duration)
- func RetireProcess(processId int)
- func SetConfigDir(cfgDir string)
- func Setup(s ...service.IService)
- func SetupTemplate[T any, P templateServicePoint[T]]()
- func SetupTemplateFunc(fs ...func() service.IService)
- func Start()
- type BuildOSType
Constants ¶
View Source
const ( SingleStop syscall.Signal = 10 SignalRetire syscall.Signal = 12 )
Variables ¶
View Source
var NodeIsRun = false
Functions ¶
func GetConfigDir ¶
func GetConfigDir() string
func GetService ¶
func KillProcess ¶
func KillProcess(processId int)
func OpenProfilerReport ¶
func RetireProcess ¶
func RetireProcess(processId int)
func SetConfigDir ¶
func SetConfigDir(cfgDir string)
func SetupTemplate ¶ added in v2.0.6
func SetupTemplate[T any, P templateServicePoint[T]]()
func SetupTemplateFunc ¶ added in v2.0.13
Types ¶
type BuildOSType ¶
type BuildOSType = int8
const ( Windows BuildOSType = 0 Linux BuildOSType = 1 Mac BuildOSType = 2 )
func GetBuildOSType ¶
func GetBuildOSType() BuildOSType
Click to show internal directories.
Click to hide internal directories.