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 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.