utils

package
v0.0.0-...-f85bb52 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2020 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePIDFile

func CreatePIDFile(PIDFile string) error

CreatePIDFile creates and writes process ID to PIDFile.

func NextPort

func NextPort(network string) (int, error)

NextPort asks kernel for a free open port that is ready to use.

func SignalHandler

func SignalHandler() <-chan bool

SignalHandler returns a channel that emit a message when a signal happens.

func ToAbsolutePath

func ToAbsolutePath(base, path string) string

ToAbsolutePath converts a relative filepath to absolute.

Types

This section is empty.

Jump to

Keyboard shortcuts

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