go-session-manager: github.com/mattn/go-session-manager Index | Files | Directories

package session

import "github.com/mattn/go-session-manager"

Index

Package Files

session.go

type Session Uses

type Session struct {
    Id    string
    Value interface{}
    // contains filtered or unexported fields
}

func (*Session) Abandon Uses

func (session *Session) Abandon()

func (*Session) Cookie Uses

func (session *Session) Cookie() string

type SessionManager Uses

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

func NewSessionManager Uses

func NewSessionManager(logger *log.Logger) *SessionManager

func (*SessionManager) Abandon Uses

func (manager *SessionManager) Abandon()

func (*SessionManager) GetPath Uses

func (manager *SessionManager) GetPath() string

func (*SessionManager) GetSession Uses

func (manager *SessionManager) GetSession(res http.ResponseWriter, req *http.Request) (session *Session)

func (*SessionManager) GetSessionById Uses

func (manager *SessionManager) GetSessionById(id string) (session *Session)

func (*SessionManager) GetTimeout Uses

func (manager *SessionManager) GetTimeout() uint

func (*SessionManager) Has Uses

func (manager *SessionManager) Has(id string) (found bool)

func (*SessionManager) OnEnd Uses

func (manager *SessionManager) OnEnd(f func(*Session))

func (*SessionManager) OnStart Uses

func (manager *SessionManager) OnStart(f func(*Session))

func (*SessionManager) SetPath Uses

func (manager *SessionManager) SetPath(t string)

func (*SessionManager) SetTimeout Uses

func (manager *SessionManager) SetTimeout(t uint)

Directories

PathSynopsis
example

Package session imports 6 packages (graph) and is imported by 3 packages. Updated 2016-07-19. Refresh now. Tools for package owners.