sessions

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const SessionCookieName = "SID"

Variables

This section is empty.

Functions

This section is empty.

Types

type SessionManager

type SessionManager struct {
	// contains filtered or unexported fields
}

func NewSessionManager

func NewSessionManager(hashKey, blockKey []byte, store users.Store) (*SessionManager, error)

func (*SessionManager) ClearProfile

func (manager *SessionManager) ClearProfile(ctx echo.Context) error

func (*SessionManager) GetProfile

func (manager *SessionManager) GetProfile(ctx echo.Context) (*users.User, error)

func (*SessionManager) SecureCookie

func (manager *SessionManager) SecureCookie(secure bool)

func (*SessionManager) SetProfile

func (manager *SessionManager) SetProfile(ctx echo.Context, profile *users.User) error

Jump to

Keyboard shortcuts

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