backend

package
v0.0.0-...-a29219d Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// APIVersion defines the compatibility version of the API and is appended to each API route
	APIVersion = "1"
)
View Source
const EnvConfigPrefix = ""

EnvConfigPrefix determines the PREFIX to use for env var overrides

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 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 a blocking function that starts the backend processes

Types

type Route

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

Route defines a route passed to our mux

Jump to

Keyboard shortcuts

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