store

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2026 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CookieToken

type CookieToken struct{}

func (*CookieToken) GetToken

func (*CookieToken) GetToken(req *http.Request, name string) (string, error)

func (*CookieToken) SetToken

func (*CookieToken) SetToken(rw http.ResponseWriter, name, value string,
	options *sessions.Options)

type Store

type Store interface {
	ginSession.Store
	EncodeToken(name, id string) (string, error)
}

func NewMongoStore

func NewMongoStore(maxAge int, keyPairs ...[]byte) Store

func NewStore

func NewStore(store string, maxAge int, keyPairs ...[]byte) Store

type TokenGetSeter

type TokenGetSeter interface {
	GetToken(req *http.Request, name string) (string, error)
	SetToken(rw http.ResponseWriter, name, value string, options *sessions.Options)
}

Jump to

Keyboard shortcuts

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