Documentation ¶
Index ¶
- func Controller(c *gin.Context) api.Controller
- func GetProject(c *gin.Context) kodex.Project
- func JSON(request *http.Request, checkContentType bool) (interface{}, error)
- func JSONData(c *gin.Context) map[string]interface{}
- func Meter(meter kodex.ModelMeter, c *gin.Context, model kodex.Model, name string, ...) error
- func Organization(c *gin.Context) api.Organization
- func PlainTextJSONData(c *gin.Context) map[string]interface{}
- func QueryToConfig(query url.Values) map[string]interface{}
- func SanitizeReferer(referer string) string
- func User(c *gin.Context) *api.ExternalUser
- type Cache
- type Content
- type ContentType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Controller ¶
func Controller(c *gin.Context) api.Controller
Get the controller and user (as created by the decorators)
func Organization ¶
func Organization(c *gin.Context) api.Organization
func PlainTextJSONData ¶
func QueryToConfig ¶
func SanitizeReferer ¶
Removes the query (which is potentially personally identifiable information) from the URL
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func MakeURLCache ¶
func MakeURLCache() *Cache
type ContentType ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.