package
0.0.3-alpha
Repository: https://github.com/lypee/sentinel-golang.git
Documentation: pkg.go.dev

# Functions

NewAtomicBucketWrapArray creates an AtomicBucketWrapArray and initializes data of each BucketWrap.
No description provided by the author
NewBucketLeapArray creates a BucketLeapArray with given attributes.
No description provided by the author
No description provided by the author
NewSlidingWindowMetric creates a SlidingWindowMetric with given attributes.

# Structs

AtomicBucketWrapArray represents a thread-safe circular array.
BucketLeapArray is the sliding window implementation based on LeapArray (as the sliding window infrastructure) and MetricBucket (as the data type).
BucketWrap represents a slot to record metrics.
LeapArray represents the fundamental implementation of a sliding window data-structure.
MetricBucket represents the entity to record metrics per minimum time unit (i.e.
SlidingWindowMetric represents the sliding window metric wrapper.

# Interfaces

BucketGenerator represents the "generic" interface for generating and refreshing buckets.