package main

import (
	"os"

	"github.com/rs/zerolog"
	"github.com/rs/zerolog/log"
	"gitlab.com/tensorsecurity-rd/waf-console/cmd/app"
)

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

func main() {

	zerolog.SetGlobalLevel(zerolog.InfoLevel)
	log.Info().Msg("starting gateway")

	rootCmd := app.NewRootCommand()
	if err := rootCmd.Execute(); err != nil {
		log.Err(err)
		os.Exit(-1)
	}
}
