circuitrytest

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErroringInMemoryBackend

type ErroringInMemoryBackend struct {
	RetrieveError error
	StoreError    error
	LockError     error
}

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

Retrieve implements the StorageBackender interface but always returns the configured RetrieveError and an empty CircuitInformation

func (ErroringInMemoryBackend) Store

Store implements the StorageBackender interface but always returns the configured StoreError

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL