Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Epoch ¶
Epoch anchors the contract fixture an hour back, well inside every store's retention window, so window filters read as minute offsets.
Types ¶
type CountingCache ¶
CountingCache counts how often each session's start key is read, so a spec can see which records a request read and how many times.
func NewCountingCache ¶
func NewCountingCache(store cache.Store) *CountingCache
func (*CountingCache) ReadsOf ¶
func (c *CountingCache) ReadsOf(id string) int
ReadsOf is how often session id's start key was read under any prefix.
func (*CountingCache) Reset ¶
func (c *CountingCache) Reset()