xsrf

package
v0.0.0-...-ebdf1d9 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2018 License: MIT Imports: 3 Imported by: 18

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 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.

Jump to

Keyboard shortcuts

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