Documentation ¶
Index ¶
Constants ¶
View Source
const (
ErrCodeBufferOverflow = 200
)
Variables ¶
This section is empty.
Functions ¶
func UpdateDestinationsConfig ¶
func UpdateDestinationsConfig(m destination.Map)
UpdateDestinationsConfig accepts destination.Map and starts new flushers if neccessary
func Write ¶
Write adds data to per-table buffer if there is enough capacity. locks are taken in the following order:
- map.RLock()
- el = map[table]
- el.Lock()
- map.RUnlock()
- doSometing(el)
- el.Unlock()
It is done because map is periodically swapped to empty map and we need to ensure that we finished writing to el that was taken after map was unlocked.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.