Documentation
¶
Index ¶
- func BindData(c *gin.Context, data interface{}) error
- func GetBodyFields(c *gin.Context, resource any) ([]any, error)
- func GetURLFields(url *url.URL, filter any) []any
- func OptionsDelete(c *gin.Context)
- func OptionsGet(c *gin.Context)
- func OptionsGetPatchDelete(c *gin.Context)
- func OptionsGetPost(c *gin.Context)
- func UUIDFromString(c *gin.Context, s string) (uuid.UUID, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBodyFields ¶ added in v0.30.2
GetBodyFields returns a slice of strings with the field names of the resource passed in. Only names of fields which are set in the body are contained in that slice.
This function reads and copies the reuqest body, it must always be called before any of gin's c.*Bind methods.
func OptionsDelete ¶ added in v0.40.0
func OptionsGet ¶
func OptionsGetPatchDelete ¶
func OptionsGetPost ¶
func UUIDFromString ¶ added in v0.26.0
This is needed because gin does not support form binding to uuid.UUID currently. Follow https://github.com/gin-gonic/gin/pull/3045 to see when this gets resolved.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.