Documentation ¶
Overview ¶
Package history implements a circular buffer with adjacent-item deduplication.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deduplicable ¶
type Deduplicable interface { // IsDuplicate returns true if other is considered to be a // duplicate of the calling instance. IsDuplicate(interface{}) bool }
Deduplicable is an interface that records should implement if the history should perform their deduplication. An example would be deduplicating records whose only difference is their timestamp.
type History ¶
type History struct {
// contains filtered or unexported fields
}
History is a data structure that allows you to keep some number of records.
Click to show internal directories.
Click to hide internal directories.