Commit 1b1acd6b by lichenggang

采用iris框架

parent 5a3713c3
Showing with 23 additions and 0 deletions
package main
import (
"github.com/kataras/iris/v12"
"os"
"web_log/code"
)
// example
func main() {
Directory := "E:\\test_logs" // directory of the log
TestPort := 9997
logenv := os.Getenv("GOLOGENV")
if logenv == "TEST" {
Directory = "/data/soft/bigdatav3.0/test_rsync_log"
}
if logenv == "PRODUCT" {
Directory = "/data/soft/rsync_log"
}
app := code.GetApp(Directory, TestPort)
app.Run(iris.Addr("0.0.0.0:9997"), iris.WithCharset("UTF-8"))
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment