main.go 572 Bytes
Newer Older
qiuqunfeng's avatar
qiuqunfeng committed
1 2 3 4 5 6
package main

import (
	"os"

	"github.com/rs/zerolog"
qiuqunfeng's avatar
qiuqunfeng committed
7
	"github.com/rs/zerolog/log"
qiuqunfeng's avatar
qiuqunfeng committed
8 9 10 11 12 13 14 15 16 17
	"gitlab.com/tensorsecurity-rd/waf-console/cmd/app"
)

const (
// weibuUrl = "https://api.threatbook.cn/v3/ip/query?apikey=d625206f5fdb49eeb98b0c30f46f4310a444f76d392540e8a0bb160d8a7d02c4&resource="
// apiKey   = "d625206f5fdb49eeb98b0c30f46f4310a444f76d392540e8a0bb160d8a7d02c4"
)

func main() {

qiuqunfeng's avatar
qiuqunfeng committed
18 19
	zerolog.SetGlobalLevel(zerolog.InfoLevel)
	log.Info().Msg("starting gateway")
qiuqunfeng's avatar
qiuqunfeng committed
20 21 22

	rootCmd := app.NewRootCommand()
	if err := rootCmd.Execute(); err != nil {
qiuqunfeng's avatar
qiuqunfeng committed
23
		log.Err(err)
qiuqunfeng's avatar
qiuqunfeng committed
24 25 26
		os.Exit(-1)
	}
}