handlers

package
v0.0.0-...-80094f7 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2013 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHandler

func AddHandler(w http.ResponseWriter, r *http.Request, session *mgo.Session)

func MainHandler

func MainHandler(w http.ResponseWriter, r *http.Request)

func ReportHandler

func ReportHandler(w http.ResponseWriter, r *http.Request, session *mgo.Session)

Types

type BSONReportContent

type BSONReportContent struct {
	DocumentURI       string `json:"documentURI" bson:"documentURI"`
	Referrer          string `json:"referrer" bson:"referrer"`
	BlockedURI        string `json:"blockedURI" bson:"blockedURI"`
	ViolatedDirective string `json:"violatedDirective" bson:"violatedDirective"`
	OriginalPolicy    string `json:"originalPolicy" bson:"originalPolicy"`
}

type Report

type Report struct {
	Content ReportContent `json:"csp-report" bson:"content"`
}

type ReportContent

type ReportContent struct {
	DocumentURI       string `json:"document-uri" bson:"documentURI"`
	Referrer          string `json:"referrer" bson:"referrer"`
	BlockedURI        string `json:"blocked-uri" bson:"blockedURI"`
	ViolatedDirective string `json:"violated-directive" bson:"violatedDirective"`
	OriginalPolicy    string `json:"original-policy" bson:"originalPolicy"`
}

Jump to

Keyboard shortcuts

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