comparison pkg/geoserver/reconf.go @ 1466:d7152eb11d58

Added api doc strings for the geoserver package.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 03 Dec 2018 20:46:35 +0100
parents b0364b8226e0
children 2de644208706
comparison
equal deleted inserted replaced
1465:cc60a2b5ed71 1466:d7152eb11d58
70 break 70 break
71 } 71 }
72 return err 72 return err
73 } 73 }
74 74
75 // Reconfigure adds a function to a queue of functions to update
76 // the GeoServer async. The functions are run again a number
77 // of times if network errors apppear indicating that the
78 // GeoServer is down.
75 func Reconfigure(fn func() error) { 79 func Reconfigure(fn func() error) {
76 confQueueCond.L.Lock() 80 confQueueCond.L.Lock()
77 defer confQueueCond.L.Unlock() 81 defer confQueueCond.L.Unlock()
78 confQueue.PushBack(fn) 82 confQueue.PushBack(fn)
79 confQueueCond.Signal() 83 confQueueCond.Signal()