From d930b5d5069187c07b702442f4acad9be9028dc3 Mon Sep 17 00:00:00 2001 From: gaoshuaixing Date: Wed, 8 Nov 2023 17:28:50 +0800 Subject: [PATCH] go --- go/api/user.go | 5 ++--- go/config/config.default.json | 11 +++++++---- go/config/config.local.json | 11 +++++++++++ go/config/config.prod.json | 15 +++++++++++---- 4 files changed, 31 insertions(+), 11 deletions(-) diff --git a/go/api/user.go b/go/api/user.go index 09b583c..de0acc9 100644 --- a/go/api/user.go +++ b/go/api/user.go @@ -1,12 +1,11 @@ package api import ( + "net/http" + "ee-go/eruntime" "ee-go/eserver" - // "ee-go/gin" - "net/http" - "github.com/gin-gonic/gin" ) diff --git a/go/config/config.default.json b/go/config/config.default.json index 831e221..09039a2 100644 --- a/go/config/config.default.json +++ b/go/config/config.default.json @@ -6,9 +6,12 @@ "max_size": 1024, "max_age": 10 }, - "url": { - "host": "kaka1", - "age": 9000, - "other": 100 + "http": { + "enable": true, + "protocol": "http://", + "hostname": "127.0.0.1", + "port": 7073, + "indexPath": "", + "network": false } } \ No newline at end of file diff --git a/go/config/config.local.json b/go/config/config.local.json index 8371cc8..1cdd5e9 100644 --- a/go/config/config.local.json +++ b/go/config/config.local.json @@ -1,6 +1,17 @@ { "logger": { "output_json": false, + "level": "info", + "filename": "ee-go.log", + "max_size": 1024, "max_age": 20 + }, + "http": { + "enable": true, + "protocol": "http://", + "hostname": "127.0.0.1", + "port": 7073, + "indexPath": "", + "network": false } } \ No newline at end of file diff --git a/go/config/config.prod.json b/go/config/config.prod.json index 28eccfa..8ed26b2 100644 --- a/go/config/config.prod.json +++ b/go/config/config.prod.json @@ -1,10 +1,17 @@ { "logger": { "output_json": true, - "max_age": 30 + "level": "info", + "filename": "ee-go.log", + "max_size": 1024, + "max_age": 30 }, - "url": { - "host": "kaka3", - "age": 9003 + "http": { + "enable": true, + "protocol": "http://", + "hostname": "127.0.0.1", + "port": 7073, + "indexPath": "", + "network": false } } \ No newline at end of file