session

package
v0.0.0-...-ef18f62 Latest Latest
Warning

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

Go to latest
Published: May 8, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Name string
	Key  string
}

Config type.

type Manager

type Manager struct {
	Config *Config
	Store  *sessions.CookieStore
}

Manager type. Manager to handle HTTP sessions via cookies.

func NewManager

func NewManager(config *Config) *Manager

NewManager is the constructor for session Manager.

func (Manager) DestroySession

func (sessionManager Manager) DestroySession(w http.ResponseWriter, r *http.Request)

DestroySession to destroy a HTTP session.

func (Manager) GetSession

func (sessionManager Manager) GetSession(r *http.Request) (session *sessions.Session, err error)

GetSession to get a HTTP session.

Jump to

Keyboard shortcuts

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