betterrest

package module
v0.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2022 License: MIT Imports: 8 Imported by: 0

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.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var For func(typeString string) *registry.Registrar = registry.For
View Source
var Sorter func(sorter hook.IRoleSorter) = registry.RegRoleSorter

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) mdlutil.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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL