app

package
v0.0.0-...-5320185 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2015 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TITLE = "DocsVision WebAPI"
)

Variables

View Source
var Dbm *gorp.DbMap = nil
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:])
}

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

This section is empty.

Types

type GorpController

type GorpController struct {
	*revel.Controller
	Txn *gorp.Transaction
}

func (*GorpController) Begin

func (c *GorpController) Begin() revel.Result

func (*GorpController) Commit

func (c *GorpController) Commit() revel.Result

func (*GorpController) Rollback

func (c *GorpController) Rollback() revel.Result

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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