12345678910111213141516171819202122232425262728 |
- package main
- import (
- "city_chips/cmd/server/wire"
- "city_chips/pkg/config"
- "city_chips/pkg/helper/hikvision"
- "city_chips/pkg/http"
- "city_chips/pkg/log"
- "fmt"
- "go.uber.org/zap"
- )
- func main() {
- conf := config.NewConfig()
- logger := log.NewLog(conf)
- logger.Info("server start", zap.String("host", "http://127.0.0.1:"+conf.GetString("http.port")))
- app, cleanup, err := wire.NewWire(conf, logger)
- if err != nil {
- panic(err)
- }
- conf.GetString("")
- //aes.ExampleUsage()
- hikvision.Hikvision()
- defer cleanup()
- http.Run(app, fmt.Sprintf(":%d", conf.GetInt("http.port")))
- }
|