photoprism/internal/photoprism/config.go
Michael Mayer a91206a509 Universal sidecar configuration, indexing with multiple roots #268 #348
Slowly getting to the point where only very few people are able to maintain this codebase :)

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-06-07 10:09:35 +02:00

23 lines
294 B
Go

package photoprism
import (
"github.com/photoprism/photoprism/internal/config"
)
var conf *config.Config
func SetConfig(c *config.Config) {
if c == nil {
panic("config is nil")
}
conf = c
}
func Config() *config.Config {
if conf == nil {
panic("config is nil")
}
return conf
}