Module fuel_indexer_lib::utils
source · Structs
- Response from the Fuel client health check.
- Request to reload the specified indexer executor using this indexer’s current assets in the database.
- Request to remove the specified indexer executor from the indexer service.
Enums
- A general request sent from the API server to the indexer service.
- Denotes the status of a service for the service health check.
Functions
- Attempt to connect to a database, with retries.
- Derive the
std::net::SocketAddrfrom a given host and port, falling back to a DNS lookup usingstd::net::ToSocketAddrsif the host is not a valid IP address. - Deserialize a generic byte array reference.
- Format a SQL query for logging.
- Initialize the logging context for the indexer service.
- Determine whether a given key is an environment variable.
- Serialize a generic byte array reference.
- Returns the lower hex representation of a [
sha2::SHA256] digest of the provided input. - Trim the leading ‘$’ or ‘${’ and trailing ‘}’ from an environment variable.