Documentation ¶
Index ¶
Constants ¶
View Source
const ( // RedisMinimumVersion contains the minimum redis version required to run the application RedisMinimumVersion = "3.2.0" // DBVersion represents the current DB format version DBVersion = 1 // DBVersionKey contains the global redis key containing the DB version format DBVersionKey = "MIRRORBITS_DB_VERSION" )
Variables ¶
View Source
var ( Daemon bool Debug bool Monitor bool ConfigFile string CpuProfile string PidFile string RunLog string RPCPort uint RPCHost string RPCPassword string RPCAskPass bool NArg int )
View Source
var ( VERSION = "" BUILD = "" DEV = "" )
View Source
var Banner = `` /* 222-byte string literal not displayed */
Banner is a piece of (ascii) art shown during startup
Functions ¶
func PrintVersion ¶
func PrintVersion(info VersionInfo)
PrintVersion prints the versions contained in a VersionReply
Types ¶
type ContextKey ¶
type ContextKey int
ContextKey reprensents a context key associated with a value
const ( // ContextAllowRedirects is the key for option: AllowRedirects ContextAllowRedirects ContextKey = iota // ContextMirrorID is the key for the variable: MirrorID ContextMirrorID // ContextMirrorName is the key for the variable: MirrorName ContextMirrorName )
type VersionInfo ¶
type VersionInfo struct { Version string Build string GoVersion string OS string Arch string GoMaxProcs int }
VersionInfo is a struct containing version related informations
func GetVersionInfo ¶
func GetVersionInfo() VersionInfo
GetVersionInfo returns the details of the current build
Click to show internal directories.
Click to hide internal directories.