Documentation ¶
Overview ¶
Package admin exists so all administrative actions have a place to install themselves.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Mux is the schelling point for those who want to provide admin // actions and those who want to install the admin portal in some port. Mux = NewConcurrentMux() )
Functions ¶
This section is empty.
Types ¶
type ConcurrentMux ¶
type ConcurrentMux struct {
// contains filtered or unexported fields
}
ConcurrentMux is safe to call HandleFunc on even after it's started serving requests.
func (*ConcurrentMux) HandleFunc ¶
func (c *ConcurrentMux) HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
HandleFunc installs the given handler.
func (*ConcurrentMux) ListHTTP ¶
func (c *ConcurrentMux) ListHTTP(w http.ResponseWriter, r *http.Request)
ListHTTP lists handlers that have been added.
func (*ConcurrentMux) ServeHTTP ¶
func (c *ConcurrentMux) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP serves according to the added handlers.
Click to show internal directories.
Click to hide internal directories.