Infrastructure

  • jobs Produce and consume jobs with a swappable backend. Leases, retries and dead jobs, an in-memory backend, a conformance suite and a manual clock for tests.
  • jwt JSON Web Tokens signed with HS256 or HS512. The key decides the algorithm, kid picks the key, and rules check exp, nbf, iss, aud, typ and size.
  • password Password hashing with scrypt. A digest that carries its cost, a constant-time check, limits for new passwords, and the same work for a missing user.
  • pool A generic pool of resources. A fixed number of long-lived resources, lent to one caller at a time, with a line, a lease, a health tick and a clean close.
  • telemetry Events for numbers, as std/logger is for text. A library says that something happened, and an app attaches handlers to count it, log it or send it away.