diff options
author | xengineering <mail2xengineering@protonmail.com> | 2021-06-18 10:00:10 +0200 |
---|---|---|
committer | xengineering <mail2xengineering@protonmail.com> | 2021-06-18 14:26:47 +0200 |
commit | 7634ee33120e7ef601ba1e806c63fe61c53e46bb (patch) | |
tree | 1a5225c9fefcc1bf69b143593c7c3001c0fbbc33 /src/web.go | |
parent | 52972b810a9a42cef5c88f9947d64a0705f243ac (diff) | |
download | birdscan-7634ee33120e7ef601ba1e806c63fe61c53e46bb.tar birdscan-7634ee33120e7ef601ba1e806c63fe61c53e46bb.tar.zst birdscan-7634ee33120e7ef601ba1e806c63fe61c53e46bb.zip |
WIP: Implement Transport
Diffstat (limited to 'src/web.go')
-rw-r--r-- | src/web.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 } |