shared

package
Version: v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2014 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package shared provides shared types, functions and constants.

Index

Constants

View Source
const (
	DefaultPath   = "/"
	DefaultMaxAge = 60 * 60 * 24 * 30 // 30days
)

Defaults for sessions.Options

View Source
const (
	DefaultBatchSize     = 10
	DefaultCheckInterval = time.Second
)

Defaults for reaper.Options

View Source
const (
	DefaultBucketName = "sessions"
)

Defaults for store.Options

Variables

This section is empty.

Functions

func Expired

func Expired(session protobuf.Session) bool

Expired checks if the session is expired.

func NewSession

func NewSession(values []byte, maxAge int) *protobuf.Session

NewSession creates and returns a session data.

func Session

func Session(data []byte) (protobuf.Session, error)

Session converts the byte slice to the session struct value.

Types

This section is empty.

Directories

Path Synopsis
Package protobuf is a generated protocol buffer package.
Package protobuf is a generated protocol buffer package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL