Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Window ¶
type Window struct {
// contains filtered or unexported fields
}
Window is an interface which represents a sliding window of elements.
func (*Window) Add ¶
func (w *Window) Add(value interface{})
Add adds an element to a window and also evicts any elements if they've been present in the window beyond the configured time-to-live
Click to show internal directories.
Click to hide internal directories.