utils

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultDirMod os.FileMode = 0755
View Source
var DefaultFileMod os.FileMode = 0644

Functions

func ConfigureLogger

func ConfigureLogger(prefix string, writer io.Writer)

func CreateFolderIfMissing added in v0.2.0

func CreateFolderIfMissing(dir string) error

func DirExists

func DirExists(path string) bool

func MonitorSignal

func MonitorSignal() <-chan os.Signal

Types

type ReconnectTimeoutGenerator

type ReconnectTimeoutGenerator struct {
	// contains filtered or unexported fields
}

func (*ReconnectTimeoutGenerator) Clear

func (g *ReconnectTimeoutGenerator) Clear()

func (*ReconnectTimeoutGenerator) Next

func (g *ReconnectTimeoutGenerator) Next()

func (*ReconnectTimeoutGenerator) Timeout added in v0.2.0

Jump to

Keyboard shortcuts

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