Skip to content
Snippets Groups Projects
  1. Dec 07, 2023
    • gjahn's avatar
      Bump Fiber version to v2.51 · 7b35b477
      gjahn authored
      Somebody havent heard about SemVer yet. The Ctx.GetReqHeaders() return value
      slightly changed (string to []string), which now requires to first join the slice
      before checking whether it contains the given string
      7b35b477
    • gjahn's avatar
      Re-order request log output information · 3b59883b
      gjahn authored
      3b59883b
    • gjahn's avatar
      Fix flaky routes state test · e231839d
      gjahn authored
      Using the Param "name" to create an Item and persist turns out to be
      affected bi Fiber's behaviour of "zero allocation", which means values
      may be re-used across requests/contexts.
      
      This caused wrong or chunked up Item names in the ephemeral state, which
      only surfaced during unit testing.
      
      For more details see https://docs.gofiber.io/#zero-allocation
      e231839d
  2. Nov 27, 2023
  3. Nov 25, 2023
    • gjahn's avatar
      Add log level configurable via environment variable · 5c3d3659
      gjahn authored
      Available levels for now: debug, error. While the former is the
      most verbose one and the latter the least verbose.
      
      It sets it to 'debug' if in development mode.
      5c3d3659
    • gjahn's avatar
      Allow to set version via environment variable · 7af81375
      gjahn authored
      The version is displayed on the HTML-based landing page.
      7af81375
    • gjahn's avatar
      Add state · 0dc754e2
      gjahn authored
      For now it's just ephemeral.
      
      Instead of disabling the timeout (-1), it's set to 1 ms for all requests
      in the state paths test. Otherwise race condistion may occur. Symptoms include
      incorrect state name, because it may have been read before it's fully written
      to the store.
      0dc754e2
  4. Nov 03, 2023
    • gjahn's avatar
      Teach root path HTML · a42a3ae8
      gjahn authored
      Depending on whats in the accept request header, the root
      path either response with a plain text or some nice HTML.
      a42a3ae8
    • gjahn's avatar
      Fix health endpoint · bf2ab576
      gjahn authored
      it appears that order matters; using ctx.JSON overrides c.Type; but
      instead of shuffling the lines around, the JSON string is generated
      by *foot*, which allows to keep header setting at the beginning of
      the function.
      bf2ab576
    • gjahn's avatar
      Add health route to indicate service healthiness · 196c33ae
      gjahn authored
      * add dependency to allow limiting possible values, though actual
        validation doesnt happen yet
      * make variable that indicates health local instead of global
      196c33ae
  5. Oct 31, 2023
  6. Oct 24, 2023
  7. Oct 13, 2023
Loading