Documentation ¶
Index ¶
- Variables
- func App() *buffalo.App
- func AuthorizeOwnUser(next buffalo.Handler) buffalo.Handler
- func HomeHandler(c buffalo.Context) error
- func SetCurrentApplication(next buffalo.Handler) buffalo.Handler
- func SetCurrentUser(next buffalo.Handler) buffalo.Handler
- type ApplicationsResource
- func (v ApplicationsResource) Create(c buffalo.Context) error
- func (v ApplicationsResource) Destroy(c buffalo.Context) error
- func (v ApplicationsResource) Edit(c buffalo.Context) error
- func (v ApplicationsResource) List(c buffalo.Context) error
- func (v ApplicationsResource) New(c buffalo.Context) error
- func (v ApplicationsResource) Show(c buffalo.Context) error
- func (v ApplicationsResource) Update(c buffalo.Context) error
- type LicensesResource
- func (v LicensesResource) Create(c buffalo.Context) error
- func (v LicensesResource) Destroy(c buffalo.Context) error
- func (v LicensesResource) Edit(c buffalo.Context) error
- func (v LicensesResource) List(c buffalo.Context) error
- func (v LicensesResource) New(c buffalo.Context) error
- func (v LicensesResource) Show(c buffalo.Context) error
- func (v LicensesResource) Update(c buffalo.Context) error
- type MachinesResource
- func (v MachinesResource) Create(c buffalo.Context) error
- func (v MachinesResource) Destroy(c buffalo.Context) error
- func (v MachinesResource) Edit(c buffalo.Context) error
- func (v MachinesResource) List(c buffalo.Context) error
- func (v MachinesResource) New(c buffalo.Context) error
- func (v MachinesResource) Show(c buffalo.Context) error
- func (v MachinesResource) Update(c buffalo.Context) error
- type UsersResource
- func (v UsersResource) Confirm(c buffalo.Context) error
- func (v UsersResource) Create(c buffalo.Context) error
- func (v UsersResource) Destroy(c buffalo.Context) error
- func (v UsersResource) Edit(c buffalo.Context) error
- func (v UsersResource) List(c buffalo.Context) error
- func (v UsersResource) Logout(c buffalo.Context) error
- func (v UsersResource) New(c buffalo.Context) error
- func (v UsersResource) Show(c buffalo.Context) error
- func (v UsersResource) Update(c buffalo.Context) error
Constants ¶
This section is empty.
Variables ¶
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".
var T *i18n.Translator
T provides i18n support for the application
Functions ¶
func App ¶
App is where all routes and middleware for buffalo should be defined. This is the nerve center of your application.
func AuthorizeOwnUser ¶
AuthorizeOwnUser limits access to paths that contain the own userID.
func HomeHandler ¶
HomeHandler is a default handler to serve up a home page.
func SetCurrentApplication ¶
SetCurrentApplication makes the current application_id available to the templates
Types ¶
type ApplicationsResource ¶
ApplicationsResource is the resource for the Application model
func (ApplicationsResource) Create ¶
func (v ApplicationsResource) Create(c buffalo.Context) error
Create adds a Application to the DB. This function is mapped to the path POST /applications
func (ApplicationsResource) Destroy ¶
func (v ApplicationsResource) Destroy(c buffalo.Context) error
Destroy deletes a Application from the DB. This function is mapped to the path DELETE /applications/{application_id}
func (ApplicationsResource) Edit ¶
func (v ApplicationsResource) Edit(c buffalo.Context) error
Edit renders a edit form for a Application. This function is mapped to the path GET /applications/{application_id}/edit
func (ApplicationsResource) List ¶
func (v ApplicationsResource) List(c buffalo.Context) error
List gets all Applications. This function is mapped to the path GET /applications
func (ApplicationsResource) New ¶
func (v ApplicationsResource) New(c buffalo.Context) error
New renders the form for creating a new Application. This function is mapped to the path GET /applications/new
type LicensesResource ¶
LicensesResource is the resource for the License model
func (LicensesResource) Create ¶
func (v LicensesResource) Create(c buffalo.Context) error
Create adds a License to the DB. This function is mapped to the path POST /licenses
func (LicensesResource) Destroy ¶
func (v LicensesResource) Destroy(c buffalo.Context) error
Destroy deletes a License from the DB. This function is mapped to the path DELETE /licenses/{license_id}
func (LicensesResource) Edit ¶
func (v LicensesResource) Edit(c buffalo.Context) error
Edit renders a edit form for a License. This function is mapped to the path GET /licenses/{license_id}/edit
func (LicensesResource) List ¶
func (v LicensesResource) List(c buffalo.Context) error
List gets all Licenses. This function is mapped to the path GET /licenses
func (LicensesResource) New ¶
func (v LicensesResource) New(c buffalo.Context) error
New renders the form for creating a new License. This function is mapped to the path GET /licenses/new
type MachinesResource ¶ added in v0.2.0
MachinesResource is the resource for the Machine model
func (MachinesResource) Create ¶ added in v0.2.0
func (v MachinesResource) Create(c buffalo.Context) error
Create adds a Machine to the DB. This function is mapped to the path POST /machines
func (MachinesResource) Destroy ¶ added in v0.2.0
func (v MachinesResource) Destroy(c buffalo.Context) error
Destroy deletes a Machine from the DB. This function is mapped to the path DELETE /machines/{machine_id}
func (MachinesResource) Edit ¶ added in v0.2.0
func (v MachinesResource) Edit(c buffalo.Context) error
Edit renders a edit form for a Machine. This function is mapped to the path GET /machines/{machine_id}/edit
func (MachinesResource) List ¶ added in v0.2.0
func (v MachinesResource) List(c buffalo.Context) error
List gets all Machines. This function is mapped to the path GET /machines
func (MachinesResource) New ¶ added in v0.2.0
func (v MachinesResource) New(c buffalo.Context) error
New renders the form for creating a new Machine. This function is mapped to the path GET /machines/new
type UsersResource ¶
UsersResource is the resource for the User model
func (UsersResource) Confirm ¶
func (v UsersResource) Confirm(c buffalo.Context) error
Confirm marks the user as logged in. This function is mapped to the path /users/confirm?userID={userID}&token={token}
func (UsersResource) Create ¶
func (v UsersResource) Create(c buffalo.Context) error
Create adds a User to the DB. This function is mapped to the path POST /users
func (UsersResource) Destroy ¶
func (v UsersResource) Destroy(c buffalo.Context) error
Destroy deletes a User from the DB. This function is mapped to the path DELETE /users/{user_id}
func (UsersResource) Edit ¶
func (v UsersResource) Edit(c buffalo.Context) error
Edit renders a edit form for a User. This function is mapped to the path GET /users/{user_id}/edit
func (UsersResource) List ¶
func (v UsersResource) List(c buffalo.Context) error
List gets all Users. This function is mapped to the path GET /users
func (UsersResource) Logout ¶
func (v UsersResource) Logout(c buffalo.Context) error
Logout removes the user session to log out the user.
func (UsersResource) New ¶
func (v UsersResource) New(c buffalo.Context) error
New renders the form for creating a new User. This function is mapped to the path GET /users/new