Documentation ¶
Index ¶
- func GetQueryParamsFields(c echo.Context) []string
- func GetStructFields(i interface{}) []string
- func IsFilterAllowed(allowed []string, filters []string) bool
- func IsStringInSlice(a string, list []string) bool
- func RemoveStringFromSlice(s []string, r string) []string
- func SelectFields(i interface{}, fields ...string) map[string]interface{}
- type JSONTime
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetQueryParamsFields ¶
func GetQueryParamsFields(c echo.Context) []string
GetQueryParamsFields retrieve `fields“ so we can filter them in GET/
func GetStructFields ¶
func GetStructFields(i interface{}) []string
GetStructFields retrieve json struct fields names
func IsFilterAllowed ¶
IsFilterAllowed check if we are allowed to filter GET with fields
func IsStringInSlice ¶
IsStringInSlice check if a string exist in a list of strings
func RemoveStringFromSlice ¶
RemoveStringFromSlice removes a string item from a list of strings.
func SelectFields ¶
SelectFields execlude sensitive fields
Types ¶
Click to show internal directories.
Click to hide internal directories.