core

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2018 License: MIT Imports: 4 Imported by: 60

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

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

Jump to

Keyboard shortcuts

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