Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatabaseInfo ¶
type DatabaseInfo struct {
Table string
Connection *rethink.Connection
Meta map[string]interface{}
Schema map[string]interface{}
}
DatabaseInfo keeps track of the information each handler requires
type Handler ¶
type Handler interface {
Update(*gin.Context)
GetAll(*gin.Context)
GetSingle(*gin.Context)
Create(*gin.Context)
Delete(*gin.Context)
Routes() []RouteDetails
}
Handler is the collection of methods required for a type to be a handler
type Meta ¶
type Meta map[string]interface{}
Meta is just a wrapper for map[string]interface{} to be used for JSONAPI meta
type RouteDetails ¶
type RouteDetails struct {
Enabled bool
Handler gin.HandlerFunc
Path string
Verb string
}
RouteDetails gives us the info needed to automatically create handlers
Click to show internal directories.
Click to hide internal directories.