routes

package
v0.0.0-...-7e4b5ca Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2016 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Routes = []Route{
	Route{
		"CreateUser",
		"POST",
		"/user",
		sessionResource.Create,
	},
}

Routes - Array of routes

Functions

This section is empty.

Types

type Route

type Route struct {
	Name        string
	Method      string
	Pattern     string
	HandlerFunc func(*gin.Context)
}

Route - Struct containing all the info to initialize a route

Jump to

Keyboard shortcuts

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