app

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// AppVersion revel app version (ldflags)
	AppVersion string = "v0.0.2"

	// BuildTime revel app build-time (ldflags)
	BuildTime string = time.Now().Format("2006-01-02")
)
View Source
var HeaderFilter = func(c *revel.Controller, fc []revel.Filter) {
	c.Response.Out.Header().Add("X-Frame-Options", "SAMEORIGIN")
	c.Response.Out.Header().Add("X-XSS-Protection", "1; mode=block")
	c.Response.Out.Header().Add("X-Content-Type-Options", "nosniff")

	fc[0](c, fc[1:])
}

HeaderFilter adds common security headers TODO turn this into revel.HeaderFilter should probably also have a filter for CSRF not sure if it can go in the same filter or not

Functions

func InitDB added in v0.0.3

func InitDB()

init db on first view

func InitDebug added in v0.0.3

func InitDebug()

func Monitor added in v0.1.5

func Monitor()

Types

This section is empty.

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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