Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Db *gorm.DB
Functions ¶
func InitTables ¶
func InitTables(db_url, db_dialect string)
Types ¶
type Model ¶
type Model struct { ID string `gorm:"primary_key"` CreatedAt time.Time UpdatedAt time.Time DeletedAt *time.Time }
func (*Model) BeforeCreate ¶
func (model *Model) BeforeCreate()
type User ¶
func GetSessionUser ¶
Click to show internal directories.
Click to hide internal directories.