admin

package
v0.0.0-...-3ce63d3 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

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 NewConcurrentMux

func NewConcurrentMux() *ConcurrentMux

NewConcurrentMux constructs a mux.

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.

Jump to

Keyboard shortcuts

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