Ocean/Log/DeviceDatabase/ReadSenderNames.go

18 lines
432 B
Go
Raw Normal View History

package DeviceDatabase
2015-06-22 15:38:55 +00:00
import (
"github.com/SommerEngineering/Ocean/Admin/Scheme"
)
2015-06-17 15:44:52 +00:00
// Read the sender names out of the cache.
2015-06-22 15:38:55 +00:00
func ReadSenderNames() (senderNames []Scheme.Sender) {
mutexCacheSenderNames.RLock()
defer mutexCacheSenderNames.RUnlock()
2015-06-22 15:38:55 +00:00
// Transform the values to the right format:
for _, entry := range cacheSenderNames {
senderNames = append(senderNames, Scheme.Sender(entry))
}
return
}