bosun.org: bosun.org/annotate/web Index | Files

package web

import "bosun.org/annotate/web"

Index

Package Files

static.go web.go

func AddRoutes Uses

func AddRoutes(router *mux.Router, prefix string, b []backend.Backend, enableUI, useLocalAssets bool) error

AddRoutes will add annotate routes to the given router, using the specified prefix

func AddRoutesWithMiddleware Uses

func AddRoutesWithMiddleware(router *mux.Router, prefix string, b []backend.Backend, enableUI, useLocalAssets bool, readMiddleware, modifyMiddleware func(http.HandlerFunc) http.Handler) error

AddRoutesWithMiddleware will add annotate routes to the given router, using the specified prefix. It accepts two middleware functions that will be applied to each route, depending on whether they are a "read" operation, or a "write" operation

func DeleteAnnotation Uses

func DeleteAnnotation(w http.ResponseWriter, req *http.Request)

func Dir Uses

func Dir(useLocal bool, name string) http.FileSystem

Dir returns a http.Filesystem for the embedded assets on a given prefix dir. If useLocal is true, the filesystem's contents are instead used.

func FS Uses

func FS(useLocal bool) http.FileSystem

FS returns a http.Filesystem for the embedded assets. If useLocal is true, the filesystem's contents are instead used.

func FSByte Uses

func FSByte(useLocal bool, name string) ([]byte, error)

FSByte returns the named file from the embedded assets. If useLocal is true, the filesystem's contents are instead used.

func FSMustByte Uses

func FSMustByte(useLocal bool, name string) []byte

FSMustByte is the same as FSByte, but panics if name is not present.

func FSMustString Uses

func FSMustString(useLocal bool, name string) string

FSMustString is the string version of FSMustByte.

func FSString Uses

func FSString(useLocal bool, name string) (string, error)

FSString is the string version of FSByte.

func GetAnnotation Uses

func GetAnnotation(w http.ResponseWriter, req *http.Request)

func GetAnnotations Uses

func GetAnnotations(w http.ResponseWriter, req *http.Request)

func GetFieldValues Uses

func GetFieldValues(w http.ResponseWriter, req *http.Request)

func Index Uses

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

func InsertAnnotation Uses

func InsertAnnotation(w http.ResponseWriter, req *http.Request)

Package web imports 19 packages (graph) and is imported by 1 packages. Updated 2017-10-20. Refresh now. Tools for package owners.