actions

package
v0.0.0-...-080bd3b Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: MIT Imports: 28 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".

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.

Routing, middleware, groups, etc... are declared TOP -> DOWN. This means if you add a middleware to `app` *after* declaring a group, that group will NOT have that new middleware. The same is true of resource declarations as well.

It also means that routes are checked in the order they are declared. `ServeFiles` is a CATCH-ALL route, so it should always be placed last in the route declarations, as it will prevent routes declared after it to never be called.

func AuthCallback

func AuthCallback(c buffalo.Context) error

func AuthDestroy

func AuthDestroy(c buffalo.Context) error

func Authorize

func Authorize(next buffalo.Handler) buffalo.Handler

func Cron

func Cron() *cron.Cron

func EmptyRoute

func EmptyRoute(c buffalo.Context) error

func ServerListHandler

func ServerListHandler(c buffalo.Context) error

ServerListHandler is a handler to serve up the multiplayer server list

func ServerListLastUpdated

func ServerListLastUpdated(next buffalo.Handler) buffalo.Handler

func ServerStatistics

func ServerStatistics(c buffalo.Context) error

func ServerStatisticsLastUpdated

func ServerStatisticsLastUpdated(next buffalo.Handler) buffalo.Handler

func SetCurrentUser

func SetCurrentUser(next buffalo.Handler) buffalo.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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