Documentation
¶
Index ¶
- Constants
- func GetMap(query map[string][]string, filteredKey string) (map[string]interface{}, error)
- func ParseSearchParams[T any](c *gin.Context) (*filter.SearchParams[T], error)
- func ShouldGetQueryNestedMap(c *gin.Context) (dict map[string]any, err error)
- func ShouldGetQueryNestedMapForKey(c *gin.Context, key string) (dict map[string]any, err error)
Constants ¶
View Source
const MaxNestedMapDepth = 100
MaxNestedMapDepth is the maximum depth of nesting of single map key in query params.
Variables ¶
This section is empty.
Functions ¶
func ParseSearchParams ¶
ParseSearchParams parses search params from the query string into a SearchParams struct with conditions of a given type.
func ShouldGetQueryNestedMap ¶
ShouldGetQueryNestedMap returns a map from query params. In contrast to QueryMap it handles nesting in query maps like key[foo][bar]=value.
func ShouldGetQueryNestedMapForKey ¶
ShouldGetQueryNestedMapForKey returns a map from query params for a given query key. In contrast to QueryMap it handles nesting in query maps like key[foo][bar]=value. Similar to ShouldGetQueryNestedMap but it returns only the map for the given key.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.