Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoExist = fmt.Errorf("failpoint: failpoint does not exist") ErrDisabled = fmt.Errorf("failpoint: failpoint is disabled") )
View Source
var ( ErrExhausted = fmt.Errorf("failpoint: terms exhausted") ErrBadParse = fmt.Errorf("failpoint: could not parse terms") )
Functions ¶
Types ¶
type Failpoint ¶
type Failpoint struct {
// contains filtered or unexported fields
}
func NewFailpoint ¶
func (*Failpoint) Acquire ¶
Acquire gets evalutes the failpoint terms; if the failpoint is active, it will return a value. Otherwise, returns a non-nil error.
Click to show internal directories.
Click to hide internal directories.