backend

package
v0.0.0-...-7ebfb41 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// EnvStateRunning means that ALL instances for an env are in "running" state
	EnvStateRunning = "running"
	// EnvStateStopped means that ALL instances for an env are in "stopped" state
	EnvStateStopped = "stopped"
	// EnvStateMixed means that instances for an env are in EITHER "stopped" or "running" state
	EnvStateMixed = "mixed"
	// EnvStateChanging means that AT LEAST ONE instance for an env is NOT in a "running" state or "stopped" state
	EnvStateChanging = "changing"
	// ASGLabel is used to identify an ASG instance
	ASGLabel = "ASG"
)
View Source
const (
	// APIVersion defines the compatability version of the API and is appended to each API route
	APIVersion = "1"
)

Variables

View Source
var (

	// Version of application
	Version = "devel"
	// CommitSHA is the short SHA hash of the git commit
	CommitSHA = "unknown"
	// BuildDate is the date this application was compiled
	BuildDate = "unknown"
)

Functions

func ComputeID

func ComputeID(input ...string) string

ComputeID returns the first 12 characters from a SHA1 hash of the combined input string(s)

func ConfigInit

func ConfigInit(cfgFile string, printConfig bool)

ConfigInit instantiates and validates the configuration options optionally it can print out a configuration summary

func PrintVersion

func PrintVersion()

PrintVersion prints the current version information to stdout

func StartBackendDeamon

func StartBackendDeamon(cfgFile string)

StartBackendDeamon Blocking function that starts the backend process

func StartPoller

func StartPoller()

StartPoller is an infinite loop which periodically polls AWS to refresh the cache

Types

type Route

type Route struct {
	Name        string
	Method      string
	Pattern     string
	HandlerFunc http.HandlerFunc
}

Route defines a route passed to our mux

type Routes

type Routes []Route

Routes holds a list of Routes

Jump to

Keyboard shortcuts

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