mongo

package module
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

README

MongoDB store for Session

Coverage Status Go Report Card GoDoc

Publish

$ GOPROXY=proxy.golang.org go list -m github.com/p000ic/go-mongo-session@$(git describe --tags --abbrev=0)

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
	Database      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, database, 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