summaryrefslogtreecommitdiff
path: root/src/web.go
diff options
context:
space:
mode:
authorxengineering <mail2xengineering@protonmail.com>2021-06-18 10:00:10 +0200
committerxengineering <mail2xengineering@protonmail.com>2021-06-18 14:26:47 +0200
commit7634ee33120e7ef601ba1e806c63fe61c53e46bb (patch)
tree1a5225c9fefcc1bf69b143593c7c3001c0fbbc33 /src/web.go
parent52972b810a9a42cef5c88f9947d64a0705f243ac (diff)
downloadbirdscan-7634ee33120e7ef601ba1e806c63fe61c53e46bb.tar
birdscan-7634ee33120e7ef601ba1e806c63fe61c53e46bb.tar.zst
birdscan-7634ee33120e7ef601ba1e806c63fe61c53e46bb.zip
WIP: Implement Transport
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
}