app

package
v0.0.0-...-8797a30 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValid

func IsValid(data []byte) (models.App, error)

IsValid Checks that data is a valid yaml

func NewRouter

func NewRouter(routes Routes) *httprouter.Router

Reads from the routes slice to translate the values to httprouter.Handle

func Save

func Save(app models.App) error

Save app data

func Upload

Types

type Route

type Route struct {
	Name        string
	Method      string
	Path        string
	HandlerFunc httprouter.Handle
}

type Routes

type Routes []Route

func AllRoutes

func AllRoutes() Routes

Jump to

Keyboard shortcuts

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