Mercurial > gemma
diff pkg/geoserver/boot.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 | 1e19184472bf |
children | 9dbaf69c7a66 |
line wrap: on
line diff
--- a/pkg/geoserver/boot.go Mon Dec 03 17:42:20 2018 +0100 +++ b/pkg/geoserver/boot.go Mon Dec 03 20:46:35 2018 +0100 @@ -537,6 +537,8 @@ return nil } +// PrepareGeoServer sets up the GeoServer to work together with the gemma server. +// It sets up a workspace, a datastore and exposes the features and styles. func PrepareGeoServer() error { if config.DBUser() == "" { @@ -564,6 +566,8 @@ return nil } +// ReconfigureStyle returns a function to update a style +// in the GeoServer to be in sync with the database. func ReconfigureStyle(name string) { Reconfigure(func() error { var stls styles