Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseDB ¶
func CloseDB() bool
CloseDB closes the current DB connection. Returns true if closed successfully.
func IsDBConnectionAvailable ¶
func IsDBConnectionAvailable() bool
IsDBConnectionAvailable checks if DB connection is available. Returns true if connection is available else false
func ReInitDBConnection ¶
func ReInitDBConnection()
ReInitDBConnection allows the DB connection to be re-initialized
Types ¶
type SessionModel ¶
type SessionModel struct { gorm.Model UserModelID uint // Foreign Key to UserModel UserModel UserModel // Convenient Method for load related user from model directly SessionID string `gorm:"not null;unique"` DevicePreferenceIndex uint8 ExpiryTime time.Time ReplyToConnectionString string }
SessionModel represents a Session of a User
Click to show internal directories.
Click to hide internal directories.