Documentation
¶
Index ¶
- Variables
- func GetAnalyticsRequestMetadata(req *http.Request) analytics.AnalyticsHTTPRequestMetadata
- func GetAuthToken(req *http.Request) string
- func GetContentType(req *http.Request) string
- func GetEntity(entity interface{}, req *http.Request) (interface{}, error)
- func GetEntityFromFormData(entity interface{}, data url.Values) (interface{}, error)
- func GetFileUploadFromFormData(data url.Values) (interface{}, error)
- func GetPaginationRequest(qs url.Values) (*request.PaginationRequestDto, error)
- func GetRequestAsURLValues(req *http.Request) (url.Values, error)
- func GetRequestContentId(req *http.Request) (bool, string)
- func GetRequestFiles(req *http.Request) (map[string]*multipart.FileHeader, error)
- func GetSearchRequestDto(req *http.Request) (*request.SearchRequestDto, error)
- func GetSelectedItems(req *http.Request) ([]string, error)
- func MapAuthRequest(req *http.Request) (string, *auth.Credential, error)
- func MapPayloadToGenericEntity(entity interface{}, payload map[string][]string) (interface{}, error)
- func MapRequestToContentUpdate(req *http.Request) (map[string]interface{}, error)
- func MapSearchRequest(searchRequest *request.SearchRequestDto) (*search.Search, error)
- func MapToURLValues(payload map[string]interface{}) url.Values
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PonzuRepeatPrefix = ".__ponzu-repeat" PonzuFieldCollectionPrefix = ".__ponzu-field-collection" )
View Source
var ErrInvalidRequest = errors.New("invalid request")
View Source
var ErrUnsupportedContentType = errors.New("unsupported content type")
View Source
var RowsPerPage = 20
Functions ¶
func GetAnalyticsRequestMetadata ¶
func GetAnalyticsRequestMetadata(req *http.Request) analytics.AnalyticsHTTPRequestMetadata
func GetAuthToken ¶
func GetContentType ¶
func GetEntityFromFormData ¶
func GetPaginationRequest ¶
func GetPaginationRequest(qs url.Values) (*request.PaginationRequestDto, error)
func GetRequestFiles ¶
func GetSearchRequestDto ¶
func GetSearchRequestDto(req *http.Request) (*request.SearchRequestDto, error)
func MapAuthRequest ¶
func MapSearchRequest ¶
func MapSearchRequest(searchRequest *request.SearchRequestDto) (*search.Search, error)
func MapToURLValues ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.