Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Apps []GorfApp
array of all registerd apps
View Source
var Settings = GlobalSettings{ UserObjKey: "user", UserObjId: "id", DbBackends: nil, }
Functions ¶
func InitializeDatabase ¶
func InitializeDatabase() error
Types ¶
type GlobalSettings ¶
type GlobalSettings struct { SecretKey string UserObjKey string UserObjId string DbBackends GorfDbBackend }
Global Project settings
type GorfBaseApp ¶ added in v0.0.6
func (*GorfBaseApp) Register ¶ added in v0.0.6
func (app *GorfBaseApp) Register(r *gin.Engine)
func (*GorfBaseApp) Setup ¶ added in v0.0.6
func (app *GorfBaseApp) Setup() error
type GorfDB ¶ added in v0.0.10
type GorfDB interface { Get(dest interface{}, key string) error Filter(dest interface{}, conds ...interface{}) error AutoMigrate(dst ...interface{}) error First(dest interface{}, conds ...interface{}) error Create(value interface{}) error }
var DB GorfDB
type GorfDbBackend ¶ added in v0.0.10
type GorfDbOperationType ¶ added in v0.0.10
type GorfDbOperationType int
const ( CREATE GorfDbOperationType = iota GET UPDATE DELETE )
type GorfQuery ¶ added in v0.0.10
type GorfQuery interface { Describe() (string, error) Operation() GorfDbOperationType }
Click to show internal directories.
Click to hide internal directories.