spinner

package
v0.0.0-...-364655a Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSpin

func AddSpin(path string, next http.Handler) http.Handler

AddSpin adds spin as middleware using the specified path.

func Spin

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

Spin is a response handler which returns a unique ID per application start.

Types

type SpinResult

type SpinResult struct {
	OK      bool      `json:"ok"`
	Version string    `json:"version"`
	ID      string    `json:"id"`
	Born    time.Time `json:"born"`
}

SpinResult is the result of a spin.

Jump to

Keyboard shortcuts

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