csp

package
v0.0.0-...-fd23dd1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2019 License: OSL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Ignore is an option which can be set to ignore the csrfFilter
	Ignore router.ControllerOption = "csrf.ignore"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module struct {
	RouterRegistry *router.Registry `inject:""`
}

Module for core/csp

func (*Module) Configure

func (m *Module) Configure(injector *dingo.Injector)

Configure DI

func (*Module) DefaultConfig

func (m *Module) DefaultConfig() config.Map

DefaultConfig for this module

type NonceGenerator

type NonceGenerator interface {
	GenerateNonce() string
}

NonceGenerator is an interface to generate a nonce

type UuidGenerator

type UuidGenerator struct{}

func (*UuidGenerator) GenerateNonce

func (*UuidGenerator) GenerateNonce() string

generateNonce generates a nonce

Jump to

Keyboard shortcuts

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