session

package
v0.0.0-...-430806f Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2013 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package session implements a cookie session store for goanna

Index

Constants

View Source
const (
	EXPIRY_KEY = "SESSION_EXPIRY_TIME"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CookieSessionStore

type CookieSessionStore struct {
	goanna.SessionStore
	goanna.CookieSigner
	CookieName      string
	DefaultDuration time.Duration
}

func NewCookieSessionStore

func NewCookieSessionStore(name, secret string, defaultDuration time.Duration) CookieSessionStore

func (CookieSessionStore) GetSession

func (ss CookieSessionStore) GetSession(request *goanna.Request) goanna.Session

type SignedCookieSession

type SignedCookieSession struct {
	goanna.CookieSigner
	// contains filtered or unexported fields
}

func (SignedCookieSession) Clear

func (s SignedCookieSession) Clear()

func (SignedCookieSession) Expiry

func (s SignedCookieSession) Expiry() time.Time

func (SignedCookieSession) Get

func (s SignedCookieSession) Get(key string) string

func (SignedCookieSession) GetId

func (s SignedCookieSession) GetId() string

func (SignedCookieSession) Set

func (s SignedCookieSession) Set(key string, value string)

func (SignedCookieSession) SetDefaultExpiry

func (s SignedCookieSession) SetDefaultExpiry() time.Time

func (SignedCookieSession) SetExpiry

func (s SignedCookieSession) SetExpiry(e time.Time) time.Time

func (SignedCookieSession) WriteToResponse

func (s SignedCookieSession) WriteToResponse(resp goanna.Response)

Jump to

Keyboard shortcuts

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