summaryrefslogtreecommitdiff
path: root/src/web.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/web.go')
-rw-r--r--src/web.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/web.go b/src/web.go
index 53f8c0a..ab15aba 100644
--- a/src/web.go
+++ b/src/web.go
@@ -16,17 +16,17 @@ const (
)
type WebServer struct {
- config *webConfig
+ config *WebConfig
}
-type webConfig struct {
+type WebConfig struct {
BindAddress string `json:"bind_address"`
BindPort string `json:"bind_port"`
}
-func NewWebServer(cfg *webConfig) WebServer {
+func NewWebServer() WebServer {
server := WebServer{}
- server.config = cfg
+ server.config = &(config.Web)
return server
}