session

package
v0.0.0-...-ec7f410 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2014 License: MIT Imports: 11 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

func NewSessionData

func NewSessionData() *sessionData

func NewSignedCookieSessionFinder

func NewSignedCookieSessionFinder(name string, key []byte, defaultDuration time.Duration, secure bool) goanna.SessionFinder

Types

type SignedCookieSession

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

func (SignedCookieSession) Clear

func (sd SignedCookieSession) Clear()

func (SignedCookieSession) Get

func (sd SignedCookieSession) Get(key string) string

func (SignedCookieSession) GetId

func (sd SignedCookieSession) GetId() string

func (SignedCookieSession) HasExpired

func (s SignedCookieSession) HasExpired() bool

func (SignedCookieSession) Init

func (sd SignedCookieSession) Init()

func (SignedCookieSession) Marshal

func (data SignedCookieSession) Marshal(raw []byte) error

func (SignedCookieSession) MaxAge

func (s SignedCookieSession) MaxAge() time.Duration

func (SignedCookieSession) Set

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

func (SignedCookieSession) SetMaxAge

func (s SignedCookieSession) SetMaxAge(d time.Duration)

func (SignedCookieSession) Unmarshal

func (sd SignedCookieSession) Unmarshal() ([]byte, error)

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