Versions in this module Expand all Collapse all v1 v1.0.1 Jun 12, 2020 v1.0.0 Oct 1, 2018 Changes in this version + func AddCORSHeaders(handler http.HandlerFunc) http.HandlerFunc + func BasicAuthWrapper(realm string, authStore CredentialStore, handlerFunc http.HandlerFunc) http.HandlerFunc + func DefaultKeepAliveMessage() interface + func GetPathKey(name string, r *http.Request) string + func WebsocketHandler(streamer WebsocketStreamer) http.HandlerFunc + type CredentialStore interface + Valid func(username, password string) bool + type MemoryCredentialStore struct + func NewMemoryCredentialStore(username, password string) *MemoryCredentialStore + func (m *MemoryCredentialStore) Valid(username, password string) bool + type ParameterRouter struct + func NewParameterRouter() ParameterRouter + func (r *ParameterRouter) AddRoute(pattern string, handler http.HandlerFunc) + func (r *ParameterRouter) GetHandler(uri string) http.HandlerFunc + type PathParameter string + type WebsocketStreamer interface + Cleanup func() + Input func() <-chan interface{} + KeepaliveMessage func() interface{} + Setup func(r *http.Request) error