util

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApplicationVersion      = "0.2.0"
	DefaultHostname         = "zello.io"
	DefaultPort             = 443
	DefaultPath             = "/ws"
	DefaultProtocol         = "wss"
	DefaultListenOnly       = true
	DefaulW3WAPIKey         = "DEADBEEF"
	DefaultUseW3W           = false
	DefaultImageLogging     = false
	DefaultFrameRate        = 60
	DefaultSampleRate       = 16000
	DefaultChannels         = 1
	DefaultFramesPerPacket  = 2
	DefaultEnableAudio      = true
	DefaultRPCServerEnabled = false
	DefaultRPCServerPort    = 9998
)

Version: Version string for the app

View Source
const (
	LogLevelTrace = iota // Something very low level
	LogLevelDebug        // Useful debugging information
	LogLevelInfo         // Something noteworthy happened
	LogLevelWarn         // You should probably take a look at this
	LogLevelError        // Something failed but I'm not quitting
	LogLevelFatal        // Calls os.Exit(1) after logging
	LogLevelPanic        // Calls panic() after logging I'm bailing

)

Log level 'enum'

Variables

View Source
var LogLevelStrings = make([]string, logLevelTraceEndMarker)

LogLevelStrings for config file

Functions

func NewID

func NewID(ws worker.Workers) int

NewID random ID that doesn't already exist

func UnixMilli

func UnixMilli(t time.Time) int64

UnixMilli returns milliseconds from Unix epoch 0

func UtcTimeDate

func UtcTimeDate() time.Time

UtcTimeDate returns current time in UTC

Types

This section is empty.

Jump to

Keyboard shortcuts

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