driver

package
v0.0.0-...-f2091f6 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2015 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Render func(newVdom, oldVdom vdom.VNode, domNode dom.Node)
)

Functions

func Init

func Init(router Router)

func SetEnv

func SetEnv(envType EnvironmentType)

func SetRouteDriver

func SetRouteDriver(drv RouteDriver)

Types

type EnvironmentType

type EnvironmentType int
const (
	BrowserEnv EnvironmentType = iota
	ServerEnv
)

func Env

func Env() EnvironmentType

type RouteDriver

type RouteDriver interface {
	Init(Router)
	URL() *gourl.URL
	SetURL(url *gourl.URL, local bool)
}

func GetRouteDriver

func GetRouteDriver() RouteDriver

type Router

type Router interface {
	PathFromRoute(route string, params ...interface{}) string
	RouteByName(name string) (route string, ok bool)
	Render(url *gourl.URL)
	Build()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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