Add support for modifying daemon configuration on-the-fly
This commit is contained in:
@@ -16,6 +16,9 @@ func NewCollection(servers []*Server) *Collection {
|
||||
|
||||
// Return all of the items in the collection.
|
||||
func (c *Collection) All() []*Server {
|
||||
c.RLock()
|
||||
defer c.RUnlock()
|
||||
|
||||
return c.items
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user