routes

package
v0.0.0-...-bfefed7 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Resolver = Info{
	CreateTable: PlainRoute{
		// contains filtered or unexported fields
	},
	Index: StringRoute{
		// contains filtered or unexported fields
	},
	Insert: StringRoute{
		// contains filtered or unexported fields
	},
}

Resolver provides path builders for all routes

Functions

This section is empty.

Types

type Info

type Info struct {
	CreateTable Route
	Index       Route
	Insert      Route
}

Info struct type for the resolver

type PlainRoute

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

func (PlainRoute) Path

func (r PlainRoute) Path(...interface{}) string

func (PlainRoute) Route

func (r PlainRoute) Route() string

type Route

type Route interface {
	Route() string
	Path(...interface{}) string
}

type StringRoute

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

func (StringRoute) Path

func (r StringRoute) Path(ks ...interface{}) string

func (StringRoute) Route

func (r StringRoute) Route() string

Jump to

Keyboard shortcuts

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