Documentation
¶
Index ¶
- type ErroringInMemoryBackend
- func (b ErroringInMemoryBackend) Lock(_ context.Context, _ string) (sync.Locker, error)
- func (b ErroringInMemoryBackend) Retrieve(_ context.Context, _ string) (circuitry.CircuitInformation, error)
- func (b ErroringInMemoryBackend) Store(_ context.Context, _ string, _ circuitry.CircuitInformation) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErroringInMemoryBackend ¶
ErroringInMemoryBackend provides a backend that always errors. Useful for testing circuitry and tools using it
func (ErroringInMemoryBackend) Lock ¶
Lock implements the StorageBackender interface. It returns a mutex if LockError == nil, otherwise it always returns the configured LockError
func (ErroringInMemoryBackend) Retrieve ¶
func (b ErroringInMemoryBackend) Retrieve(_ context.Context, _ string) (circuitry.CircuitInformation, error)
Retrieve implements the StorageBackender interface but always returns the configured RetrieveError and an empty CircuitInformation
func (ErroringInMemoryBackend) Store ¶
func (b ErroringInMemoryBackend) Store(_ context.Context, _ string, _ circuitry.CircuitInformation) error
Store implements the StorageBackender interface but always returns the configured StoreError
Click to show internal directories.
Click to hide internal directories.