mnd

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package mnd provides re-usable constants for the Notifiarr application packages.

Index

Constants

View Source
const (
	Mode0755  = 0o755
	Mode0750  = 0o750
	Mode0600  = 0o600
	Kilobyte  = 1024
	Megabyte  = Kilobyte * Kilobyte
	KB100     = Kilobyte * 100
	OneDay    = 24 * time.Hour
	Base10    = 10
	Base8     = 8
	Bits64    = 64
	Bits32    = 32
	Windows   = "windows"
	Disabled  = "disabled"
	HelpLink  = "GoLift Discord: https://golift.io/discord"
	UserRepo  = "Notifiarr/notifiarr"
	BugIssue  = "This is a bug please report it on github: https://github.com/" + UserRepo + "/issues/new"
	DockerV   = "NOTIFIARR_IN_DOCKER"
	Synology  = "/etc/synoinfo.conf" // Synology is the path to the syno config file.
	IsLinux   = runtime.GOOS == "linux"
	IsWindows = runtime.GOOS == Windows
	IsFreeBSD = runtime.GOOS == "freebsd"
)

Application Constants.

View Source
const (
	Title            = "Notifiarr"
	DefaultName      = "notifiarr"
	DefaultLogFileMb = 100
	DefaultLogFiles  = 0 // delete none
	DefaultEnvPrefix = "DN"
	DefaultTimeout   = time.Minute
	DefaultBindAddr  = "0.0.0.0:5454"
)

Application Defaults.

Variables

View Source
var (
	// IsSynology tells us if this we're running on a Synology.
	IsSynology bool
	// IsDocker tells us if this is our Docker container.
	IsDocker = os.Getenv(DockerV) == "true"
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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