package
Version:
v0.0.0-...-6e78f20
Opens a new window with list of versions in this module.
Published: Oct 28, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
CloseDB closes database connection (unnecessary)
CheckAuth checks if authentication information exists
Setup initializes the database instance
type Login struct {
Model
Username string `gorm:"type:varchar(20);not null;index:name_idx"`
Password string `gorm:"type:varchar(256);not null;"`
}
type Model struct {
ID int `gorm:"primary_key"`
CreatedOn int `gorm:"type:int"`
ModifiedOn int `gorm:"type:int"`
DeletedOn int `gorm:"type:int"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.