request

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2024 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

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")
View Source
var RowsPerPage = 20

Functions

func GetAnalyticsRequestMetadata

func GetAnalyticsRequestMetadata(req *http.Request) entities.AnalyticsHTTPRequestMetadata

func GetAuthToken

func GetAuthToken(req *http.Request) string

func GetEntity

func GetEntity(t content.Builder, req *http.Request) (interface{}, error)

func GetEntityFromFormData

func GetEntityFromFormData(t content.Builder, data url.Values) (interface{}, error)

func GetFileUploadFromFormData

func GetFileUploadFromFormData(data url.Values) (interface{}, error)

func GetPaginationRequest

func GetPaginationRequest(qs url.Values) (*request.PaginationRequestDto, error)

func GetRequestContentId

func GetRequestContentId(req *http.Request) (bool, string)

func GetRequestFiles

func GetRequestFiles(req *http.Request) (map[string]*multipart.FileHeader, error)

func GetSearchRequestDto

func GetSearchRequestDto(req *http.Request) (*request.SearchRequestDto, error)

func GetSelectedItems added in v0.5.0

func GetSelectedItems(req *http.Request) ([]string, error)

func MapAuthRequest

func MapAuthRequest(req *http.Request) (string, *entities.Credential, error)

func MapRequestToContentUpdate

func MapRequestToContentUpdate(req *http.Request) (map[string]interface{}, error)

func MapSearchRequest

func MapSearchRequest(searchRequest *request.SearchRequestDto) (*entities.Search, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL