dt

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2025 License: MIT Imports: 5 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 GenId added in v1.0.1

func GenId(tag string, args ...interface{}) 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 *

Types

type Object

type Object struct {
	et.Json
	Key string `json:"key"`
	Ok  bool   `json:"ok"`
}

func Get

func Get(key string) Object

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

func NewObject added in v1.0.1

func NewObject(key string) *Object

* * NewObject * @param key string * @return *Object *

func Put added in v1.0.3

func Put(id, key string, value interface{}) Object

* * Put * @param id, key string, value interface{} * @return Object *

func Up

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

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

func UpItem added in v1.0.3

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

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

func (*Object) Down added in v1.0.1

func (s *Object) Down()

* * Drop *

func (*Object) Item added in v1.0.3

func (s *Object) Item() et.Item

* * Item * @return et.Json *

func (*Object) Load added in v1.0.1

func (s *Object) Load() bool

* * Load * @return error *

func (*Object) Save added in v1.0.1

func (s *Object) Save() bool

* * Save * @return bool *

func (*Object) ToData added in v1.0.1

func (s *Object) ToData(data et.Json, source string)

* * ToData * @param data et.Json * @param source string *

func (*Object) ToLoad added in v1.0.1

func (s *Object) ToLoad(data et.Json)

* * ToLoad * @param data et.Json * @return bool *

func (*Object) Up added in v1.0.1

func (s *Object) Up(data et.Json) bool

* * Up * @param data et.Json * @return bool *

type Objects added in v1.0.1

type Objects struct {
	Key     string            `json:"key"`
	Ok      bool              `json:"ok"`
	Count   int               `json:"count"`
	Objects map[string]Object `json:"objects"`
}

func Gets added in v1.0.4

func Gets(key string) Objects

* * Gets * @param key string * @return Object *

func NewObjects added in v1.0.1

func NewObjects(key string) *Objects

* * NewObjects * @return *Objects *

func Ups added in v1.0.4

func Ups(key, pK string, data []et.Json) Objects

* * Ups * @param key string, data et.Json * @return Object *

func (*Objects) Add added in v1.0.1

func (s *Objects) Add(obj Object) bool

* * Add * @param obj Object * @return bool *

func (*Objects) Down added in v1.0.1

func (s *Objects) Down()

* * Drop *

func (*Objects) Load added in v1.0.1

func (s *Objects) Load() bool

* * Load * @return error *

func (*Objects) Save added in v1.0.1

func (s *Objects) Save() bool

* * Save * @return bool *

func (*Objects) Up added in v1.0.1

func (s *Objects) Up(tag, pK string, items et.Items) bool

* * Up * @param tag string * @param pK string * @param items et.Items * @return bool *

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