expectation

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExpectationsTimeout = 3 * time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Expectation

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

type Expectations

type Expectations struct {
	cache.Store
	// contains filtered or unexported fields
}

func NewExpectations

func NewExpectations(name string, timeOut time.Duration) *Expectations

func (*Expectations) DeleteExpectation

func (e *Expectations) DeleteExpectation(key string)

func (*Expectations) GetExpectation

func (e *Expectations) GetExpectation(key string) *Expectation

func (*Expectations) Record

func (e *Expectations) Record(key string, timestamp int64) error

func (*Expectations) Satisfied

func (e *Expectations) Satisfied(key string, timestamp int64) bool

func (*Expectations) SetExpectation

func (e *Expectations) SetExpectation(key string, value int64) error

Jump to

Keyboard shortcuts

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