Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "0.0.1"
Functions ¶
func GranularityFromString ¶
func GranularityFromString(granularityStr string)
func NewMemoryStorage ¶
func NewMemoryStorage(options ...string) *memoryStorage
Types ¶
type Counter ¶
type Counter struct {
// contains filtered or unexported fields
}
func NewCounter ¶
func NewCounter() *Counter
func (*Counter) MostCommon ¶
func (c *Counter) MostCommon(n int) (items []CounterItem)
TODO: is it possible to get the most common without popping and pushing? O(n log k)
type CounterItem ¶
type CounterItem struct { Value interface{} Count int }
type MovingWindowSupport ¶
type StorageBase ¶
Click to show internal directories.
Click to hide internal directories.