Documentation ¶
Index ¶
- Variables
- func File(r *http.Request, key string) (mrtype.File, error)
- func FileContent(r *http.Request, key string) (mrtype.FileContent, error)
- func ParseCorrelationID(r *http.Request) (string, error)
- func ParseDateTime(r *http.Request, key string, required bool) (time.Time, error)
- func ParseEnum(r *http.Request, key string, required bool) (string, error)
- func ParseEnumList(r *http.Request, key string) ([]string, error)
- func ParseInt64(r *http.Request, key string, required bool) (int64, error)
- func ParseInt64List(r *http.Request, key string) ([]int64, error)
- func ParseItemStatusList(r *http.Request, key string, defaultItems []mrenum.ItemStatus) ([]mrenum.ItemStatus, error)
- func ParseLanguage(r *http.Request) []string
- func ParseNullableBool(r *http.Request, key string) (*bool, error)
- func ParsePageParams(r *http.Request, keyIndex, keySize string) (mrtype.PageParams, error)
- func ParseRangeInt64(r *http.Request, key string) (mrtype.RangeInt64, error)
- func ParseRequiredBool(r *http.Request, key string) (bool, error)
- func ParseSortParams(r *http.Request, keyField, keyDirection string) (mrtype.SortParams, error)
- func ParseStr(r *http.Request, key string, required bool) (string, error)
- func ParseStrList(r *http.Request, key string) ([]string, error)
- func ParseUUID(r *http.Request, key string, required bool) (uuid.UUID, error)
- func ParseUserIp(r *http.Request) (net.IP, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FactoryErrHttpRequestCorrelationID = NewFactory( "errHttpRequestCorrelationID", ErrorKindInternalNotice, "header 'CorrelationID' contains incorrect value '{{ .value }}'") FactoryErrHttpRequestUserIP = NewFactory( "errHttpRequestUserIP", ErrorKindInternalNotice, "UserIP '{{ .value }}' is not IP:port") FactoryErrHttpRequestParseUserIP = NewFactory( "errHttpRequestParseUserIP", ErrorKindInternalNotice, "UserIP contains incorrect value '{{ .value }}'") )
Functions ¶
func FileContent ¶
FileContent - only for short files
func ParseDateTime ¶
func ParseItemStatusList ¶
func ParseItemStatusList(r *http.Request, key string, defaultItems []mrenum.ItemStatus) ([]mrenum.ItemStatus, error)
func ParseLanguage ¶
func ParsePageParams ¶
func ParseRangeInt64 ¶
func ParseSortParams ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.