cookiestore

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2020 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 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