proxies

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2019 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pruner

type Pruner interface {
	Prune(time.Time) error
}

func NewPruner

func NewPruner(maxAge time.Duration, store data.Store) Pruner

type PrunerMock

type PrunerMock struct {
	PruneMock mPrunerMockPrune
	// contains filtered or unexported fields
}

PrunerMock implements Pruner

func NewPrunerMock

func NewPrunerMock(t minimock.Tester) *PrunerMock

NewPrunerMock returns a mock for Pruner

func (*PrunerMock) MinimockFinish

func (m *PrunerMock) MinimockFinish()

MinimockFinish checks that all mocked methods have been called the expected number of times

func (*PrunerMock) MinimockPruneDone

func (m *PrunerMock) MinimockPruneDone() bool

MinimockPruneDone returns true if the count of the Prune invocations corresponds the number of defined expectations

func (*PrunerMock) MinimockPruneInspect

func (m *PrunerMock) MinimockPruneInspect()

MinimockPruneInspect logs each unmet expectation

func (*PrunerMock) MinimockWait

func (m *PrunerMock) MinimockWait(timeout mm_time.Duration)

MinimockWait waits for all mocked methods to be called the expected number of times

func (*PrunerMock) Prune

func (mmPrune *PrunerMock) Prune(t1 time.Time) (err error)

Prune implements Pruner

func (*PrunerMock) PruneAfterCounter

func (mmPrune *PrunerMock) PruneAfterCounter() uint64

PruneAfterCounter returns a count of finished PrunerMock.Prune invocations

func (*PrunerMock) PruneBeforeCounter

func (mmPrune *PrunerMock) PruneBeforeCounter() uint64

PruneBeforeCounter returns a count of PrunerMock.Prune invocations

type PrunerMockPruneExpectation

type PrunerMockPruneExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

PrunerMockPruneExpectation specifies expectation struct of the Pruner.Prune

func (*PrunerMockPruneExpectation) Then

Then sets up Pruner.Prune return parameters for the expectation previously defined by the When method

type PrunerMockPruneParams

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

PrunerMockPruneParams contains parameters of the Pruner.Prune

type PrunerMockPruneResults

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

PrunerMockPruneResults contains results of the Pruner.Prune

Jump to

Keyboard shortcuts

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