sliding_window

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2024 License: BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const AlgorithmName = "sliding_window_v2"

Variables

This section is empty.

Functions

This section is empty.

Types

type SlidingWindow

type SlidingWindow struct {
	Limit algorithm.Limit
	RDB   algorithm.Rediser
	// contains filtered or unexported fields
}

func (*SlidingWindow) Allow

func (c *SlidingWindow) Allow() (r *algorithm.Result, err error)

func (*SlidingWindow) SetKey

func (c *SlidingWindow) SetKey(key string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL