Documentation ¶
Index ¶
- Variables
- func GetAnalyticsRequestMetadata(req *http.Request) entities.AnalyticsHTTPRequestMetadata
- func GetAuthToken(req *http.Request) string
- func GetEntity(t content.Builder, req *http.Request) (interface{}, error)
- func GetEntityFromFormData(t content.Builder, data url.Values) (interface{}, error)
- func GetFileUploadFromFormData(data url.Values) (interface{}, error)
- func GetPaginationRequest(qs url.Values) (*request.PaginationRequestDto, 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 MapAuthRequest(req *http.Request) (string, *entities.Credential, error)
- func MapRequestToContentUpdate(req *http.Request) (map[string]interface{}, error)
- func MapSearchRequest(searchRequest *request.SearchRequestDto) (*entities.Search, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnsupportedContentType = errors.New("unsupported content type") PonzuRepeatPrefix = ".__ponzu-repeat" PonzuFieldCollectionPrefix = ".__ponzu-field-collection" )
View Source
var ErrInvalidRequest = errors.New("invalid request")
Functions ¶
func GetAnalyticsRequestMetadata ¶
func GetAnalyticsRequestMetadata(req *http.Request) entities.AnalyticsHTTPRequestMetadata
func GetAuthToken ¶
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) (*entities.Search, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.