router

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	Handle(c *gin.Context)
}

Handler ...

func NotFound

func NotFound() Handler

NotFound ...

type OptionalPathHandler

type OptionalPathHandler interface {
	PathHandler
	OptionalPath() string
}

OptionalPathHandler ...

func Vaults

func Vaults(app *app.Safe) OptionalPathHandler

Vaults ...

type PathHandler

type PathHandler interface {
	Handler
	Path() string
}

PathHandler ...

func Logout

func Logout(app *app.Safe) PathHandler

NotFound ...

func Password

func Password() PathHandler

Password ...

func Tags

func Tags(app *app.Safe) PathHandler

Tags ...

type RenderHandler

type RenderHandler interface {
	PathHandler
	render.Render
}

RenderHandler ...

func Home

func Home(app *app.Safe, debug bool) RenderHandler

Home ...

func Landing

func Landing(app *app.Safe, debug bool) RenderHandler

Landing ...

type Router

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

Router ...

func NewRouter

func NewRouter(port int, app *app.Safe, test bool) *Router

NewRouter ...

func (*Router) Addr

func (r *Router) Addr() string

Addr ...

func (*Router) Handler

func (r *Router) Handler() http.Handler

Handler ...

Jump to

Keyboard shortcuts

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