cookiestore

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package cookiestore provides a cookie based session storage

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...Option) oauth.SessionStore

New returns a new cookie based session store

Types

type Option

type Option func(c *cookieStore)

Option is an option for cookie store options

func WithCookieName

func WithCookieName(name string) Option

WithCookieName sets the session cookie name

func WithLifetime

func WithLifetime(lifetime time.Duration) Option

WithLifetime sets the store session lifetime

func WithMultiAudience

func WithMultiAudience(m bool) Option

WithMultiAudience will not restrict the session cookies to a single audience

func WithSessionKey

func WithSessionKey(key [64]byte) Option

WithSessionKey sets the session cookie keys

func WithTimeout

func WithTimeout(timeout time.Duration) Option

WithTimeout sets the store session activity timeout

Jump to

Keyboard shortcuts

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