app

package
v0.0.0-...-dfb77c5 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2017 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

* Copyright 2014-2015 LDLN * * This file is part of LDLN Base Station. * * LDLN Base Station is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * LDLN Base Station is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with LDLN Base Station. If not, see <http://www.gnu.org/licenses/>.

* Copyright 2014-2015 LDLN * * This file is part of LDLN Base Station. * * LDLN Base Station is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * LDLN Base Station is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with LDLN Base Station. If not, see <http://www.gnu.org/licenses/>.

Index

Constants

This section is empty.

Variables

View Source
var (
	DB      string
	RAW_DEK string
)
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

func AppInit

func AppInit()

func RegisterDB

func RegisterDB()

func RegisterRawDek

func RegisterRawDek()

Types

This section is empty.

Directories

Path Synopsis
* Copyright 2014-2015 LDLN * * This file is part of LDLN Base Station.
* Copyright 2014-2015 LDLN * * This file is part of LDLN Base Station.
* Copyright 2014-2015 LDLN * * This file is part of LDLN Base Station.
* Copyright 2014-2015 LDLN * * This file is part of LDLN Base Station.

Jump to

Keyboard shortcuts

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