store

package
v0.0.0-...-58f6e79 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fault

type Fault interface {
	Inject() error
	Reset()
	IsHandlerSet() bool
	SetHandler([]byte) error
}

Fault defines behaviors for faults stored in the store.

type Store

type Store struct {
	// contains filtered or unexported fields
}

func NewFaultStore

func NewFaultStore() *Store

func (*Store) Add

func (s *Store) Add(key string, fault Fault)

func (*Store) Exists

func (s *Store) Exists(key string) bool

func (*Store) Get

func (s *Store) Get(key string) (Fault, bool)

func (*Store) List

func (s *Store) List() []Fault

func (*Store) Reset

func (s *Store) Reset(key string) error

func (*Store) Set

func (s *Store) Set(key string, config []byte) error

Jump to

Keyboard shortcuts

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