Documentation
¶
Index ¶
- func GetDotMap(mm *ConcurrentMap, k string) (interface{}, bool)
- func UpdateDotMap(mm *ConcurrentMap, key []string, value string) error
- type ConcurrentMap
- func (mm *ConcurrentMap) Bytes(marshal func(v interface{}) ([]byte, error)) ([]byte, error)
- func (mm *ConcurrentMap) CreateChain(key []string, lastValid int, value interface{})
- func (mm *ConcurrentMap) Get(key string) (interface{}, bool)
- func (mm *ConcurrentMap) Reset(data map[string]interface{})
- func (mm *ConcurrentMap) Set(key string, value interface{})
- type Map
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDotMap ¶
func GetDotMap(mm *ConcurrentMap, k string) (interface{}, bool)
Reads internal configuration map key with given value
func UpdateDotMap ¶
func UpdateDotMap(mm *ConcurrentMap, key []string, value string) error
Updates internal configuration map key with given value
Types ¶
type ConcurrentMap ¶
type ConcurrentMap struct {
// contains filtered or unexported fields
}
func New ¶
func New() *ConcurrentMap
func (*ConcurrentMap) Bytes ¶
func (mm *ConcurrentMap) Bytes(marshal func(v interface{}) ([]byte, error)) ([]byte, error)
concurrent safe marshal function that serializes dotmap to requested format
func (*ConcurrentMap) CreateChain ¶
func (mm *ConcurrentMap) CreateChain(key []string, lastValid int, value interface{})
Creates a new key chain for non existing keys
func (*ConcurrentMap) Get ¶
func (mm *ConcurrentMap) Get(key string) (interface{}, bool)
concurrent safe of key readings from the map
func (*ConcurrentMap) Reset ¶
func (mm *ConcurrentMap) Reset(data map[string]interface{})
Resets map content data
func (*ConcurrentMap) Set ¶
func (mm *ConcurrentMap) Set(key string, value interface{})
concurrent safe set of a key on the map
type Map ¶
type Map map[string]interface{}
overloading go map implementation same as go, not safe for concurrent access please use ConcurrentMap for concurrent access
Click to show internal directories.
Click to hide internal directories.