Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Histogram ¶
type Histogram[T comparable] struct { // contains filtered or unexported fields }
func New ¶
func New[T comparable]() *Histogram[T]
type SyncHistogram ¶
type SyncHistogram[T comparable] struct { sync.RWMutex // contains filtered or unexported fields }
func NewSync ¶
func NewSync[T comparable]() *SyncHistogram[T]
func (*SyncHistogram[T]) Add ¶
func (h *SyncHistogram[T]) Add(item T)
func (*SyncHistogram[T]) Count ¶
func (h *SyncHistogram[T]) Count() int
func (*SyncHistogram[T]) Items ¶
func (h *SyncHistogram[T]) Items() map[T]int
Click to show internal directories.
Click to hide internal directories.