-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.go
25 lines (21 loc) · 876 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright Url-Shortenter Author(https://houseme.github.io/url-shortenter/). All Rights Reserved.
//
// This Source Code Form is subject to the terms of the MIT License.
// If a copy of the MIT was not distributed with this file,
// You can obtain one at https://github.com/houseme/url-shortenter.
// Package main is the main package for the console service.
package main
import (
_ "github.com/gogf/gf/contrib/drivers/mysql/v2"
_ "github.com/gogf/gf/contrib/nosql/redis/v2"
"github.com/gogf/gf/v2/os/gctx"
"github.com/houseme/url-shortenter/app/console/internal/cmd"
_ "github.com/houseme/url-shortenter/app/console/internal/logic"
_ "github.com/houseme/url-shortenter/app/console/internal/packed"
"github.com/houseme/url-shortenter/internal/tracing"
)
func main() {
ctx := gctx.New()
tracing.InitTracer(ctx, "tracing-shortenter-console")
cmd.Main.Run(ctx)
}