Documentation
¶
Index ¶
- type Manager
- func (m *Manager) ClearNamespace(namespace string)
- func (m *Manager) Delete(namespace, key string)
- func (m *Manager) Get(namespace, key string) (any, bool)
- func (m *Manager) GetAll() map[string]map[string]any
- func (m *Manager) GetNamespace(namespace string) map[string]any
- func (m *Manager) Increment(namespace, key string, delta float64) (float64, error)
- func (m *Manager) Set(namespace, key string, value any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager manages state per namespace.
func (*Manager) ClearNamespace ¶
ClearNamespace removes all state for a namespace.
func (*Manager) GetNamespace ¶
GetNamespace returns a copy of all state for a namespace.
Click to show internal directories.
Click to hide internal directories.