Mercurial > gemma
diff 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 |
line wrap: on
line diff
--- a/pkg/geoserver/reconf.go Mon Dec 03 17:42:20 2018 +0100 +++ b/pkg/geoserver/reconf.go Mon Dec 03 20:46:35 2018 +0100 @@ -72,6 +72,10 @@ return err } +// Reconfigure adds a function to a queue of functions to update +// the GeoServer async. The functions are run again a number +// of times if network errors apppear indicating that the +// GeoServer is down. func Reconfigure(fn func() error) { confQueueCond.L.Lock() defer confQueueCond.L.Unlock()