Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Apps []GorfApp
array of all registerd apps
View Source
var DB *gorm.DB
View Source
var Settings = GlobalSettings{ UserObjKey: "user", UserObjId: "id", DbConf: &SqliteBackend{Name: "data.db"}, }
Functions ¶
func InitializeDatabase ¶
func InitializeDatabase()
Types ¶
type DatabaseBackend ¶ added in v0.0.3
type GlobalSettings ¶
type GlobalSettings struct { SecretKey string UserObjKey string UserObjId string DbConf DatabaseBackend }
Global Project settings
type PostgrSQLBackend ¶ added in v0.0.3
type PostgrSQLBackend struct {
Dsn string
}
func (*PostgrSQLBackend) Close ¶ added in v0.0.3
func (backend *PostgrSQLBackend) Close() error
func (*PostgrSQLBackend) Connect ¶ added in v0.0.3
func (backend *PostgrSQLBackend) Connect() error
type SqliteBackend ¶ added in v0.0.3
type SqliteBackend struct {
Name string
}
func (*SqliteBackend) Close ¶ added in v0.0.3
func (backend *SqliteBackend) Close() error
func (*SqliteBackend) Connect ¶ added in v0.0.3
func (backend *SqliteBackend) Connect() error
Click to show internal directories.
Click to hide internal directories.