utils

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: GPL-3.0, GPL-3.0-or-later Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsRunnigAsRootInLinux

func IsRunnigAsRootInLinux() bool

IsRunnigAsRootInLinux return true if running on Linux and if process is running as root

func RunRoutine

func RunRoutine(configuration config.Configuration, function func())

RunRoutine will run function in a separeted goroutine and wait or not due to config.

func RunRoutineInGroup

func RunRoutineInGroup(configuration config.Configuration, function func(), waitGroup *sync.WaitGroup)

RunRoutineInGroup will run function in a separeted goroutine and wait or not due to config. Increment waitGroup counter and notify when done.

Types

This section is empty.

Jump to

Keyboard shortcuts

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