package
0.0.0-20240910131244-13d20f98e541
Repository: https://github.com/redhatinsights/edge-api.git
Documentation: pkg.go.dev

# Functions

BoolFilterHandler handles boolean values filters.
ComposeFilters composes all the filters into one function.
ContainFilterHandler handles sub string values.
CreatedAtFilterHandler handles the "created_at" filter.
GetAccount from http request header.
GetAccountFromContext determines account number from supplied context.
GetDefaultIdentity is a function to create the default identity struct.
GetIdentity from http request header.
GetIdentityFromContext determines identity from supplied context.
GetIdentityInstanceFromContext returns an instances of identity.XRHID from Base64 encoded ident in context.
GetOrgID return org-id from http request identity header.
GetOrgIDFromContext return org-id number from supplied context.
GetOriginalIdentity get the original identity data from context.
GetPagination is a function helper to get pagination parameters from the request context.
No description provided by the author
IntegerNumberFilterHandler handles integer number values filters.
OneOfFilterHandler handles multiple values filters.
Paginate is a middleware to get pagination params from the request and store it in the request context.
SortFilterHandler handles sorting.

# Constants

DefaultAccount that will return on tests and on debug/local mode.
DefaultOrgID that will return on tests and on debug/local mode.
No description provided by the author
DefaultUserName that will return on tests and on debug/local mode.
IdentityTypeUser represent the user identity type.
LayoutISO represent the date layout in the API query.
PaginationKey is used to store pagination data in request context.

# Structs

APIResponse generic model for API responses.
EdgeAPIPaginatedResponse represents pagination response.
Filter is the struct that defines an API Filter.
Pagination represents pagination parameters.
ValidationError represents validation error.

# Type aliases

FilterFunc is a function that takes http request and GORM DB adds a query according to the request.