daemon

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APP  = "UpDownBadgeServer"
	VER  = "1.4.0"
	DESC = "Service for generating badges for updown.io checks"
)

Basic service info

View Source
const (
	MIN_PORT         = 1025
	MAX_PORT         = 65535
	MIN_CACHE_PERIOD = 60   // 1 min
	MAX_CACHE_PERIOD = 3600 // 1 hour
	MIN_PROCS        = 1
	MAX_PROCS        = 256
)
View Source
const (
	OPT_CONFIG   = "c:config"
	OPT_NO_COLOR = "nc:no-color"
	OPT_HELP     = "h:help"
	OPT_VER      = "v:version"

	OPT_VERB_VER = "vv:verbose-version"
)

Options

View Source
const (
	MAIN_MAX_PROCS  = "main:max-procs"
	UPDOWN_API_KEY  = "updown:api-key"
	BADGE_FONT      = "badge:font"
	BADGE_STYLE     = "badge:style"
	CACHE_PERIOD    = "cache:period"
	SERVER_IP       = "server:ip"
	SERVER_PORT     = "server:port"
	SERVER_REDIRECT = "server:redirect"
	LOG_DIR         = "log:dir"
	LOG_FILE        = "log:file"
	LOG_MODE        = "log:mode"
	LOG_LEVEL       = "log:level"
)

Configuration file properties

View Source
const (
	CHECK_UNKNOWN uint8 = 0
	CHECK_STATUS  uint8 = 1
	CHECK_UPTIME  uint8 = 2
	CHECK_APDEX   uint8 = 3
)
View Source
const (
	STYLE_PLASTIC     = "plastic"
	STYLE_FLAT        = "flat"
	STYLE_FLAT_SQUARE = "flat-square"
)

Variables

This section is empty.

Functions

func Run added in v1.3.1

func Run(gomod []byte)

Run is main utility function

Types

This section is empty.

Jump to

Keyboard shortcuts

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