actions

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

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

Go to latest
Published: Aug 12, 2019 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ENV = envy.Get("GO_ENV", "development")

ENV is used to help switch settings based on where the application is being run. Default is "development".

View Source
var Helpers = render.Helpers{
	"knownTagsMD":   knownTagsMD,
	"topicLinks":    topicLinks,
	"knownTagsHTML": knownTagsHTML,
}

Functions

func App

func App() *buffalo.App

App is where all routes and middleware for buffalo should be defined. This is the nerve center of your application.

func HomeHandler

func HomeHandler(c buffalo.Context) error

HomeHandler is a default handler to serve up a home page.

Types

type ToolsResource

type ToolsResource struct {
	buffalo.Resource
}

ToolsResource is the resource for the Tool model

func (ToolsResource) List

func (v ToolsResource) List(c buffalo.Context) error

List gets all Tools. This function is mapped to the path GET /tools

func (ToolsResource) Show

func (v ToolsResource) Show(c buffalo.Context) error

Show gets the data for one Tool. This function is mapped to the path GET /tools/{tool_id}

Jump to

Keyboard shortcuts

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