routers

package
v0.0.0-...-acc4708 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2017 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRepoReverser

func NewRepoReverser(repoPrefix string) url.RepoReverser

Types

type Repo

type Repo struct {
	// contains filtered or unexported fields
}

func (*Repo) ConfigureRouter

func (r *Repo) ConfigureRouter(superRouter Router)

type Router

type Router interface {
	Handle(path string, isSubtree bool, handler handlers.Handler)
	HandleClassic(path string, handler http.Handler)
	ServeHTTP(w http.ResponseWriter, r *http.Request)
}

func NewMain

func NewMain(cfg config.Parser, templates templates.Loader) Router

type SubRouter

type SubRouter interface {
	ConfigureRouter(superRouter Router)
}

func NewRepo

func NewRepo(cfg *config.Global, url url.Reverser, repo models.Repo, templates templates.Loader) SubRouter

Jump to

Keyboard shortcuts

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