guardutils

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: Apache-2.0 Imports: 7 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 (
	MinimumInterval = 5 * time.Second
)

Variables

This section is empty.

Functions

func CreateLogger

func CreateLogger(logLevel string)

func Sanitize

func Sanitize(in string) string

contain at most 60 characters contain only lowercase alphanumeric characters or '-' start with an alphanumeric character end with an alphanumeric character

func SyncLogger added in v0.2.0

func SyncLogger()

Types

type Stat

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

func (*Stat) Add

func (s *Stat) Add(key string)

func (*Stat) Init

func (s *Stat) Init()

func (*Stat) Log

func (s *Stat) Log() string

type Ticker

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

func NewTicker

func NewTicker(minimumInterval time.Duration) *Ticker

func (*Ticker) Ch

func (t *Ticker) Ch() <-chan time.Time

func (*Ticker) Parse

func (t *Ticker) Parse(intervalStr string, defaultInterval time.Duration) error

func (*Ticker) Start

func (t *Ticker) Start()

func (*Ticker) Stop

func (t *Ticker) Stop()

Jump to

Keyboard shortcuts

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