system

package
v0.0.0-...-407825d Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: GPL-3.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (

	// PathBase is the location of all dominion src files
	PathBase = "/usr/local/dominion"
	// PathLogs is the location of all dominion log files
	PathLogs = "/usr/local/dominion/logs"
)

Variables

This section is empty.

Functions

func Errorf

func Errorf(fmts string, args ...interface{})

func LogRPCf

func LogRPCf(rpcName, fmts string, args ...interface{})

func LogRoutinef

func LogRoutinef(routineName, fmts string, args ...interface{})

func Logf

func Logf(fmt string, args ...interface{})

func Panic

func Panic(err error)

func RoutineOperation

func RoutineOperation(ctx context.Context, routineName string, wait time.Duration, op func(context.Context, time.Time))

RoutineOperation offers repeatedly runs op and then waits for wait. canceling ctx will end the cycle

func Setup

func Setup(logFilePath string) error

Setup initializes logging and signal handling

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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