Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
fever-ch
GitHub Repository: fever-ch/go-google-sites-proxy
Path: blob/master/common/config/config.go
509 views
1
package config
2
3
// Configuration represents the setup of the whole GGSP
4
type Configuration interface {
5
Sites() []Site
6
Index() bool
7
Port() uint16
8
}
9
10
// Site represents the settings of a specific site
11
type Site interface {
12
Ref() string
13
Host() string
14
Description() string
15
Redirects() []string
16
Language() string
17
KeepLinks() bool
18
FaviconPath() string
19
GRef() string
20
21
IPHeader() string
22
}
23
24
// ConfigLoader is a function that can load a configuration from
25
// specific manner, i.e. NewYamlConfigLoader
26
type ConfigLoader func() (Configuration, error)
27
28