database

package
v0.0.0-...-dfaa8e5 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TableSpace               = "space"
	TableApplication         = "application"
	TableAppIdentityProvider = "application_identity_provider"
	TableUser                = "user"
	TableUserIdentity        = "user_identity"
	TableUserIdentityData    = "user_identity_data"
	TableAuthLog             = "auth_log"
	TableUserAgent           = "user_agent"
	TableUserIP              = "user_ip"
	TableApplicationMfa      = "application_mfa"
	TableUserMfa             = "user_mfa"
)

Variables

This section is empty.

Functions

func BuildConnString

func BuildConnString(c *config.Database) string

BuildConnString creates a database connection string based on configuration parameters.

Types

type MgoSession

type MgoSession interface {
	DB(name string) *mgo.Database
	Copy() *mgo.Session
	Close()
}

Session is an interface to access to the Session struct.

func NewConnection

func NewConnection(c *config.Database) (MgoSession, error)

NewConnection establishes a new session to the database.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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