view

package
v0.0.0-...-ed9fe1d Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2018 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mount

func Mount(router *web.Router, path string, p Page)

Mount mounts a route of `router` with Page

Types

type Page

type Page interface {
	Render(req *web.Request) *response.Response
}

Page is a struct that configure page endpoints.

type PageFunc

type PageFunc func(*web.Request) Page

PageFunc is to convert a handler function to view.Page

func (PageFunc) Render

func (f PageFunc) Render(req *web.Request) *response.Response

Render implements Page.Render

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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