utils

package
v0.0.0-...-887dc56 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTimeout = fslock.ErrTimeout
	ErrLocked  = fslock.ErrLocked
)
View Source
var ConnectionWaiter = sync.WaitGroup{}

Functions

func Debug

func Debug() *zerolog.Event

func Error

func Error() *zerolog.Event

func Info

func Info() *zerolog.Event

func Panic

func Panic() *zerolog.Event

func RandomString

func RandomString(n int) string

func Warn

func Warn() *zerolog.Event

func YamlToJson

func YamlToJson(ym []byte) (json []byte, err error)

Types

type FileLock

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

func NewFileLock

func NewFileLock(fp string) *FileLock

func (*FileLock) LockWithTimeout

func (f *FileLock) LockWithTimeout(duration time.Duration) error

func (*FileLock) Unlock

func (f *FileLock) Unlock() error

Jump to

Keyboard shortcuts

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