node

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2025 License: Apache-2.0 Imports: 20 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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 GetNodeId

func GetNodeId() string

func GetService

func GetService(serviceName string) service.IService

func KillProcess

func KillProcess(processId int)

func OpenProfilerReport

func OpenProfilerReport(interval time.Duration)

func RetireProcess

func RetireProcess(processId int)

func SetConfigDir

func SetConfigDir(cfgDir string)

func Setup

func Setup(s ...service.IService)

func SetupTemplate added in v2.0.6

func SetupTemplate[T any, P templateServicePoint[T]]()

func SetupTemplateFunc added in v2.0.13

func SetupTemplateFunc(fs ...func() service.IService)

func Start

func Start()

Types

type BuildOSType

type BuildOSType = int8
const (
	Windows BuildOSType = 0
	Linux   BuildOSType = 1
	Mac     BuildOSType = 2
)

func GetBuildOSType

func GetBuildOSType() BuildOSType

Jump to

Keyboard shortcuts

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