session

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Store is the cookie store
	Store *sessions.CookieStore
)

Functions

func Empty

func Empty(sess *sessions.Session)

Empty deletes all the current session values

func HashString

func HashString(pw string) (string, error)

HashString returns a hashed password string + error

func Instance

func Instance(r *http.Request) *sessions.Session

Instance returns a new session, never returns an error

func MatchString

func MatchString(hash, pw string) bool

MatchString returns true if the hash matches the password

func StoreCreate

func StoreCreate(ssk string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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