server_utils v0.2.2 API Reference

Modules

Structure that represents a page request with the page information and the page size

Moule that represents a cursor pagination

Defines a page request for cursor pagination

Module to simplify the parsing of an Integer value

JWT parser to get claim values

Module to get an integer() or a PageParams.t struct from a request map

Parses a map with a cursor page request to a ServerUtils.Page.CursorPageRequest struct

Plug to build a paginated request

Plug to build a paginated request

Plug to intercept request and validate the presence of the JWT header

Logger wrapper that handles warn and error logging and sends a Sentry report. Both logging and Sentry calls will be executed asynchronously

Exceptions