xsrf

package
v0.0.0-...-b76ee76 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package xsrf is a container for the gorilla csrf package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResetConfig

func ResetConfig()

ResetConfig resets the config.

func SetConfig

func SetConfig(i Info)

SetConfig stores the config.

func Token

func Token(w http.ResponseWriter, r *http.Request, v *view.Info)

Token sets token in the template to the CSRF token.

Types

type Info

type Info struct {
	AuthKey string
	Secure  bool
}

Info holds the config.

func Config

func Config() Info

Config returns the config.

Jump to

Keyboard shortcuts

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