Skip to content

Tags: sony/gobreaker

Tags

v2.3.0

Toggle v2.3.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Synchronize time in distributed circuit breaker (#109)

v2.2.1

Toggle v2.2.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Delete mutex in redis.Store.Unlock (#104)

v2.2.0

Toggle v2.2.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Separate Redis logic into another package (#99)

* Add RedisStore implementation and associated tests

This commit introduces a new RedisStore that implements the SharedDataStore interface for the gobreaker package. The Store allows for data storage and retrieval using Redis, along with support for distributed locking via the go-redsync library.

Key changes include:
- Implementation of the Store struct with methods for setting and getting data, as well as locking and unlocking mechanisms.
- Comprehensive unit tests for the RedisStore, covering various scenarios including setting/getting data, handling special characters, and concurrent operations.
- Removal of the miniredis dependency from the main gobreaker tests, transitioning to a dedicated RedisStore test suite.

Additionally, the go.mod and go.sum files have been updated to include necessary dependencies for Redis and redsync, ensuring compatibility with the new Store implementation.

* Refactor RedisStore to Store and update related methods

This commit renames the RedisStore struct to Store and updates all associated methods and tests accordingly. The changes enhance clarity and maintainability of the codebase by standardizing the naming convention. Additionally, the mutex timeout constants in distributed_gobreaker.go have been renamed to follow Go's convention for exported constants.

Key changes include:
- Renaming RedisStore to Store in store.go, store_test.go, and related test cases.
- Updating method signatures and references to reflect the new Store name.
- Renaming mutex timeout constants to MutexTimeout and MutexWaitTime for consistency.

* Refactor mutex timeout constants in distributed_gobreaker.go

This commit renames the exported constants MutexTimeout and MutexWaitTime to lowercase mutexTimeout and mutexWaitTime to adhere to Go's convention for unexported identifiers. This change improves code clarity and consistency within the file.

* Remove unused tearDownDCB function and related calls in distributed_gobreaker_test.go

This commit eliminates the tearDownDCB function, which was not necessary for cleanup in the test cases. The associated defer calls in the test functions have also been removed, streamlining the test setup and improving code clarity.

v2.1.0

Toggle v2.1.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Add RedisStore (#86)

v2.0.0

Toggle v2.0.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
V2 (#61)

* [Go 1.21] Replace 'any' / 'interface{}' implementation with Generics (#54)

* gobreaker/v2: added generics implementation in v2 module

* gobreaker/v2/example: added v2 example

* gobreaker/README: updated README.md

* fixup! gobreaker/v2: added generics implementation in v2 module

---------

Co-authored-by: Yoshiyuki Mineo <[email protected]>

* Do refactoring

* Update README.md for v2

* Update README.md for v2

* Update README.md for v2

---------

Co-authored-by: Mario Salgado <[email protected]>

v1.0.0

Toggle v1.0.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Update go versions (#60)

v0.5.0

Toggle v0.5.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Update readme (#35)

* Modify the comment for IsSuccessful

* Update README

v0.4.1

Toggle v0.4.1's commit message
Add go.mod and go.sum

0.4.0

Toggle 0.4.0's commit message
Add tests for Go 1.11.x

0.3.0

Toggle 0.3.0's commit message
two step circuit breaker (#6)

* add multi step breaker control

* added documentation

* test breaker initialization with preserving coverage

* change the 2-step breaker interface to a single Allow function with a callback

* provide a separate structure for the different use case of Allow()

* update documentation

* review fixes:
- renamed twostep breaker constructor
- fixed failure test call to return an error