utils

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckDirectoryFreeSpace

func CheckDirectoryFreeSpace(dir string) uint64

func GetBytesFromMBytes added in v0.0.4

func GetBytesFromMBytes(size uint64) uint64

Input `size` in bytes

func GetKBytesFromBytes added in v0.0.4

func GetKBytesFromBytes(size int64) int64

func GetMBytesFromBytes

func GetMBytesFromBytes(size int64) int64

func IsSpaceEnough

func IsSpaceEnough(dir string, size uint64) bool

func SetUpSyslogWriter

func SetUpSyslogWriter(c *cli.Context) (_ *zerolog.Logger, e error)

Types

type ContextKey

type ContextKey uint8
const (
	ContextKeyLogger ContextKey = iota
	ContextKeyCliContext
	ContextKeyAbortFunc
	ContextKeyAnilibriaClient
	ContextKeyDelugeClient
)

Jump to

Keyboard shortcuts

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