From 7634ee33120e7ef601ba1e806c63fe61c53e46bb Mon Sep 17 00:00:00 2001 From: xengineering Date: Fri, 18 Jun 2021 10:00:10 +0200 Subject: WIP: Implement Transport --- src/web.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/web.go') 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 } -- cgit v1.2.3-70-g09d2