usersession

package
v0.0.0-...-aad219a Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	UserId   int
	LoggedIn bool
}

func MakeSession

func MakeSession(r *http.Request) (Session, error)

func (Session) CurrentUser

func (s Session) CurrentUser() (user.User, error)

func (Session) Debug

func (s Session) Debug() string

func (Session) Locals

func (s Session) Locals() map[string]interface{}

func (*Session) LogIn

func (s *Session) LogIn(username string, pass_attempt string) bool

func (*Session) Logout

func (s *Session) Logout() error

func (*Session) Save

func (s *Session) Save(w http.ResponseWriter, r *http.Request) error

Jump to

Keyboard shortcuts

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