v1.6.2 Latest Latest

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

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 9 Imported by: 0




This section is empty.


This section is empty.


func Initer

func Initer() session.Initer

Initer returns the session.Initer for the MongoDB session store.


type Config

type Config struct {

	// Options is the settings to set up the MongoDB client connection.
	Options *Options
	// Database is the database name of the MongoDB.
	Database string
	// Collection is the collection name for storing session data. Default is "sessions".
	Collection string
	// Lifetime is the duration to have no access to a session before being
	// recycled. Default is 3600 seconds.
	Lifetime time.Duration
	// Encoder is the encoder to encode session data. Default is session.GobEncoder.
	Encoder session.Encoder
	// Decoder is the decoder to decode session data. Default is session.GobDecoder.
	Decoder session.Decoder
	// contains filtered or unexported fields

Config contains options for the MongoDB session store.

type Options

type Options = options.ClientOptions

Options keeps the settings to set up MongoDB client connection.

Jump to

Keyboard shortcuts

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