mongo

package module
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

README

MongoDB store for Session

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStore

func NewStore(cfg *Config) session.ManagerStore

NewStore Create an instance of a mongo store

Types

type Config

type Config struct {
	URL           string
	Source        string
	Collection    string
	AuthMechanism string
	Username      string
	Password      string
	AuthSource    string
	Auth          bool
	ClientOptions *options.ClientOptions
}

Config mongodb configuration parameters

func NewConfig

func NewConfig(url, source, collection, username, password, authSource string) *Config

NewConfig create mongodb configuration

Jump to

Keyboard shortcuts

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