Documentation ¶
Index ¶
- Constants
- Variables
- func BuildRoutes(r *gin.Engine, topLevelResources ...resource.Metadata)
- func CrudlActions() map[interface{}]func() resource.Action
- func GomerrRenderHandler(gomerrRenderer func(gomerr.Gomerr) http.StatusCoder) gin.HandlerFunc
- func NilSubject(*gin.Context) auth.Subject
- func NoActions() map[interface{}]func() resource.Action
- func SubjectHandler(subjectProvider SubjectProvider) gin.HandlerFunc
- func SubjectHandlerSubject(c *gin.Context) auth.Subject
- type HttpSpec
- type SubjectProvider
Constants ¶
View Source
const SubjectKey = "gomer-subject"
Variables ¶
View Source
var Subject = NilSubject
Functions ¶
func CrudlActions ¶
func GomerrRenderHandler ¶
func GomerrRenderHandler(gomerrRenderer func(gomerr.Gomerr) http.StatusCoder) gin.HandlerFunc
func SubjectHandler ¶
func SubjectHandler(subjectProvider SubjectProvider) gin.HandlerFunc
Types ¶
Click to show internal directories.
Click to hide internal directories.