tiled.query_registration.QueryRegistry

class tiled.query_registration.QueryRegistry[source]

Keep track of all known queries types, with names.

When the server starts up, it uses this registry to populate the list of allowed URL query parameters to its /search route.

There is a global instance of this, defined below. It is implemented as a class, rather than a module-scope singleton, for the sake of tests.

__init__()[source]

Methods

__init__()

register([name, overwrite, must_revalidate])

Register a new type of query.

Attributes

name_to_query_type

query_type_to_name