dt

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2025 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Resilencia map[string]*Step

Functions

func Drop

func Drop(key string)

* * Drop * @param key string *

func Resilience

func Resilience(key string, limit int) int

* * Resilience * @param key string * @return int *

func ResilienceReset

func ResilienceReset(key string)

* * ResilienceReset * @param key string *

func SetDuration added in v0.1.2

func SetDuration(d time.Duration)

* * SetDuration * @param d time.Duration *

Types

type Object

type Object struct {
	et.Item
	Key string `json:"key"`
}

func Get

func Get(key string) Object

* * Get * @param key string * @return Object *

func Up

func Up(key string, data et.Item) Object

* * Up * @param key string, data et.Item * @return Object *

type Step

type Step struct {
	Step  int
	Limit int
}

Jump to

Keyboard shortcuts

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