Some checks failed
check / check (push) Failing after 2m36s
Update go.mod module directive, all Go import paths, and JSON schema $id URIs to use the new sneak.berlin/go/neoirc module path.
54 lines
1.2 KiB
Go
54 lines
1.2 KiB
Go
// Package main is the entry point for the neoircd server.
|
|
package main
|
|
|
|
import (
|
|
"go.uber.org/fx"
|
|
"sneak.berlin/go/neoirc/internal/broker"
|
|
"sneak.berlin/go/neoirc/internal/config"
|
|
"sneak.berlin/go/neoirc/internal/db"
|
|
"sneak.berlin/go/neoirc/internal/globals"
|
|
"sneak.berlin/go/neoirc/internal/handlers"
|
|
"sneak.berlin/go/neoirc/internal/healthcheck"
|
|
"sneak.berlin/go/neoirc/internal/ircserver"
|
|
"sneak.berlin/go/neoirc/internal/logger"
|
|
"sneak.berlin/go/neoirc/internal/middleware"
|
|
"sneak.berlin/go/neoirc/internal/server"
|
|
"sneak.berlin/go/neoirc/internal/service"
|
|
"sneak.berlin/go/neoirc/internal/stats"
|
|
)
|
|
|
|
var (
|
|
// Appname is the application name, set at build time.
|
|
Appname = "neoirc" //nolint:gochecknoglobals
|
|
|
|
// Version is the application version, set at build time.
|
|
Version string //nolint:gochecknoglobals
|
|
)
|
|
|
|
func main() {
|
|
globals.Appname = Appname
|
|
globals.Version = Version
|
|
|
|
fx.New(
|
|
fx.Provide(
|
|
broker.New,
|
|
config.New,
|
|
db.New,
|
|
globals.New,
|
|
handlers.New,
|
|
ircserver.New,
|
|
logger.New,
|
|
server.New,
|
|
middleware.New,
|
|
healthcheck.New,
|
|
service.New,
|
|
stats.New,
|
|
),
|
|
fx.Invoke(func(
|
|
_ *server.Server,
|
|
_ *ircserver.Server,
|
|
) {
|
|
}),
|
|
).Run()
|
|
}
|