Skip to content

Releases: travelaudience/go-nested

v0.4.0

24 Sep 09:19
66ebb85
Compare
Choose a tag to compare

Adds a counter to keep track of how many consecutive errors have been registered on a service.

Full Changelog: v0.3.1...v0.4.0

v0.3.1

30 May 08:22
5b4825c
Compare
Choose a tag to compare

Simplifies the registering of callback functions, fixing an issue where a non-comparable observer would cause a runtime panic when added to the observer map.

  • Method RegisterCallback replaces Register.
  • Method DeregisterCallback replaces Deregister.
  • Method OnNotify has been removed.

Full Changelog: v0.3.0...v0.3.1

v0.3.0

23 May 09:19
759842d
Compare
Choose a tag to compare

Changes to the basic design, including:

  • New Initializing state.
  • Not Ready state renamed to Error.
  • Error values are now only applicable to the Error state.
  • State changes are now notified via callbacks.
  • Collections now keep track of the error values of their monitored services.
  • Collections now require a call to Run() to start monitoring. This is necessary in order to correctly report if any of the monitored services are initializing.

This release is not backwards-compatible.

v0.2.0

14 Feb 09:08
f730838
Compare
Choose a tag to compare

API Improvements:

  • Renames GetState() to GetFullState().
  • Introduces a new GetState() that returns only the state value (without the error state), eliminating the need for the if s, _ := x.GetState(); s == nested.Ready { pattern.
  • Adds a label parameter to Collection.Add(), so that services in the collection can be referenced.
  • Adds the method Collection.Up() to return a map indicating the readiness of all currently monitored services.

v0.1.1

15 Jan 11:06
ad94a6a
Compare
Choose a tag to compare

Fixes an issue where collections are not initialized properly.

v0.1.0

29 Sep 09:07
d5725d0
Compare
Choose a tag to compare

Initial release.