status

package
v0.0.0-...-44558b4 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BUILDTIME string

BUILDTIME is the time at which the code was compiled

View Source
var GITCOMMIT string

GITCOMMIT is the git commit id (the hex of the sha1 hash) of the source code used when building this code It should be set to the head commit of the master repo, not mist_go_utils. In the release code's repo the mist_go_utils should be vendored, and from that the mist_go_utils version can be derived from the main repo's commit.

View Source
var STARTTIME = time.Now().UTC()

startup time of this process

View Source
var VERSION string

VERSION is a version string for humans. We can try and set it to the circle-ci supplied version tag

Functions

func HandleAbout

func HandleAbout(w http.ResponseWriter, r *http.Request)

a useful handler for the "/about" URL. You can register this with

http.HandleFunc("/about", cloud.HandleAbout)

Types

type Mux

type Mux interface {
	HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
	Handle(pattern string, handler http.Handler)
}

func Serve

func Serve() Mux

func ServePort

func ServePort(port int) Mux

Jump to

Keyboard shortcuts

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