actions

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2018 License: Apache-2.0 Imports: 18 Imported by: 2

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 KEY = envy.Get("HAVEN_JWK_PATH", "")

TODO mappamundi/postgrest/keycloak-dev-public-key.json should be the JWK and will need to be mounted into the havenapi container

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 CommentGetHandler

func CommentGetHandler(c buffalo.Context) error

CommentGetHandler accepts a comment upost

func CommentPostHandler

func CommentPostHandler(c buffalo.Context) error

CommentPostHandler accepts a comment upost

func HealthzHandler

func HealthzHandler(c buffalo.Context) error

HealthzHandler checks for a working DB connection

func JwtMiddleware

func JwtMiddleware(next buffalo.Handler) buffalo.Handler

validate JWT and set context compatible with PostgREST

func UploadHandler

func UploadHandler(c buffalo.Context) error

UploadHandler accepts a file upload

Types

This section is empty.

Jump to

Keyboard shortcuts

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