Skip to content

Releases: diffuse/gloss

v0.3.0

05 Jul 17:40

Choose a tag to compare

Changes in this release:

  • Routing has been moved to the chi package to allow for easy router swapping if chi is not desired
  • A Database instance is created in main.go instead of handlers.go, then passed to the router

Note:

  • The example counter service may panic once or twice on a failed connection to the database with the ./bootstrap_example.sh script; this is due to the counter service coming up before the database service is fully initialized. You can just ignore the panics, because it will continue to panic-recover until it successfully connects.

v0.2.0

21 Jun 16:00

Choose a tag to compare

Changes in this release:

  • Standard PostgreSQL environment variables are now used so that environment variable parsing can be delegated to the pq/pgx libraries
  • pq PostgreSQL driver was replaced with pgx because pq is in maintenance mode and pgx is actively maintained
  • Database code was abstracted with an interface to support dependency injection
  • Rows are deleted from tables in unit test setup instead of a full table drop and recreate for efficiency

Note:

  • The example counter service may panic once or twice on a failed connection to the database with the ./bootstrap_example.sh script; this is due to the counter service coming up before the database service is fully initialized. You can just ignore the panics, because it will continue to panic-recover until it successfully connects. I may resolve this in a future release.