Documentation ¶
Index ¶
- Variables
- func FetchHeaderAuthorization(r *http.Request) (string, error)
- func FetchPathID(r *http.Request) (int64, error)
- func FetchQueryAuthorID(r *http.Request) (int64, error)
- func FetchQueryCursor(r *http.Request) (int64, error)
- func FetchQueryLimit(r *http.Request) (uint64, error)
- func FetchQueryPostStatus(r *http.Request) (types.PostStatus, error)
- func FetchQuerySorting(r *http.Request) (types.Sorting, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoAuthHeader = errors.New("no auth header") ErrInvalidAuthHeader = errors.New("invalid auth header") )
View Source
var ( ErrUnsupportedValue = errors.New("unsupported value") ErrQueryParamIsNotPresent = errors.New("query param is not present") )
Functions ¶
func FetchQueryPostStatus ¶
func FetchQueryPostStatus(r *http.Request) (types.PostStatus, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.