Documentation
¶
Index ¶
- type Item
- func (i *Item) ArrayBool() []bool
- func (i *Item) ArrayDuration() []time.Duration
- func (i *Item) ArrayFloat() []float64
- func (i *Item) ArrayInt() []int
- func (i *Item) ArrayJson() []et.Json
- func (i *Item) ArrayMap() []map[string]interface{}
- func (i *Item) ArrayStr() []string
- func (i *Item) ArrayTime() []time.Time
- func (i *Item) Bool() bool
- func (i *Item) Duration() time.Duration
- func (i *Item) Float() float64
- func (i *Item) Get() interface{}
- func (i *Item) Int() int
- func (i *Item) Json() et.Json
- func (i *Item) Map() map[string]interface{}
- func (i *Item) Set(value interface{}) interface{}
- func (i *Item) Str() string
- func (i *Item) Time() time.Time
- type Mem
- func (c *Mem) Clear()
- func (c *Mem) Count(key string, expiration time.Duration) int
- func (c *Mem) Del(key string) bool
- func (c *Mem) Get(key string, def interface{}) interface{}
- func (c *Mem) Keys() []string
- func (c *Mem) Len() int
- func (c *Mem) Set(key string, value interface{}, expiration time.Duration) interface{}
- func (c *Mem) Type() string
- func (c *Mem) Values() []interface{}
- type Peticiones
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Item ¶
type Item struct {
Datemake time.Time
Dateupdate time.Time
Key string
Value interface{}
// contains filtered or unexported fields
}
Item struct to use in cache
func (*Item) ArrayDuration ¶
Return value array from item
type Mem ¶
type Mem struct {
// contains filtered or unexported fields
}
Mem struct to use in gateway
type Peticiones ¶
type Peticiones struct {
//
Peticiones int
//
Capacity int // Capacidad de peticiones del ACS
TimeWait int // Tiempo de espera para la siguiente petición
SizeStack int // Tamaño de la pila de peticiones
// contains filtered or unexported fields
}
func NewPetciones ¶ added in v0.0.2
func NewPetciones(capacity, timeWait int) *Peticiones
func (*Peticiones) GetConfig ¶
func (c *Peticiones) GetConfig() et.Json
func (*Peticiones) GetPeticiones ¶
func (c *Peticiones) GetPeticiones() int
Click to show internal directories.
Click to hide internal directories.