api

package
v0.0.0-...-da9a50a Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2021 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContentType_LCP_JSON  = "application/vnd.readium.lcp.license.v1.0+json"
	ContentType_LSD_JSON  = "application/vnd.readium.license.status.v1.0+json"
	ContentType_TEXT_HTML = "text/html"

	ContentType_JSON = "application/json"

	ContentType_FORM_URL_ENCODED = "application/x-www-form-urlencoded"
)

Variables

This section is empty.

Functions

func CORSHeaders

func CORSHeaders(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc)

func CheckAuth

func CheckAuth(authenticator *auth.BasicAuth, w http.ResponseWriter, r *http.Request) bool

func ExtraLogger

func ExtraLogger(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc)

Types

type ServerRouter

type ServerRouter struct {
	R *mux.Router
	N *negroni.Negroni
}

func CreateServerRouter

func CreateServerRouter(tplPath string) ServerRouter

Jump to

Keyboard shortcuts

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