Versions in this module Expand all Collapse all v0 v0.1.0 Jan 5, 2017 Changes in this version + func Asset(name string) ([]byte, error) + func AssetDir(name string) ([]string, error) + func AssetInfo(name string) (os.FileInfo, error) + func AssetNames() []string + func MustAsset(name string) []byte + func NewHandler(b *Bin) http.Handler + func RestoreAsset(dir, name string) error + func RestoreAssets(dir, name string) error + type Bin struct + Description string + Endpoints []*Endpoint + Groups []*Group + IndexTemplate string + Name string + ShortDescription string + func New(name string, shortDescription string, description string) (*Bin, error) + func (b *Bin) AddEndpoint(endpoint *Endpoint) + func (b *Bin) AddGroup(group *Group) + func (b *Bin) Index(w http.ResponseWriter, r *http.Request, _ httprouter.Params) + type Endpoint struct + Description string + Handler httprouter.Handle + Method string + Parameters Parameters + Query url.Values + Uri *url.URL + func NewEndpoint(method string, uri string, handler httprouter.Handle) (*Endpoint, error) + func (e *Endpoint) BuildUri() string + type EndpointCollector interface + AddEndpoint func(*Endpoint) + type Group struct + Description string + Endpoints []*Endpoint + Name string + func NewGroup(name string, description string) (*Group, error) + func (g *Group) AddEndpoint(endpoint *Endpoint) + type Parameters map[string]string + func (p Parameters) Set(key string, value string)