README ¶ BetterREST This experimental project aims to allow user to define only database schema to have the basic CRUD functionality provided by a REST interface. Expand ▾ Collapse ▴ Documentation ¶ Index ¶ Variables func RegDB(dbi *gorm.DB) func RegisterContextFunction(f func(r *http.Request) models.UserIDFetchable) func SetConfig(cfg Config) type Config Constants ¶ This section is empty. Variables ¶ View Source var For func(typeString string) *models.Registrar = models.For Functions ¶ func RegDB ¶ added in v0.4.16 func RegDB(dbi *gorm.DB) RegDB register the db func RegisterContextFunction ¶ added in v0.7.0 func RegisterContextFunction(f func(r *http.Request) models.UserIDFetchable) func SetConfig ¶ added in v0.4.21 func SetConfig(cfg Config) Types ¶ type Config ¶ added in v0.4.21 type Config struct { Log bool TransactDebug bool } Source Files ¶ View all Source files betterrest.go Directories ¶ Show internal Expand all Path Synopsis controller datamapper gormfixes service db libs datatypes settings urlparam utils utils/jsontrans utils/letters utils/sqlbuilder utils/transact webrender lifecycle models tools query routes Click to show internal directories. Click to hide internal directories.