Documentation ¶
Index ¶
- Constants
- type Expectation
- type Expectations
- func (e *Expectations) DeleteExpectation(key string)
- func (e *Expectations) GetExpectation(key string) *Expectation
- func (e *Expectations) Record(key string, timestamp int64) error
- func (e *Expectations) Satisfied(key string, timestamp int64) bool
- func (e *Expectations) SetExpectation(key string, value int64) error
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 ¶
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) SetExpectation ¶
func (e *Expectations) SetExpectation(key string, value int64) error
Click to show internal directories.
Click to hide internal directories.