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 ¶
BuildConnString creates a database connection string based on configuration parameters.
Types ¶
type MgoSession ¶
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.
Click to show internal directories.
Click to hide internal directories.