Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AppSet = wire.NewSet( configs.ConfigsSet, db.DbSet, adapters.AdaptersSet, routers.RouterSet, NewApp, )
AppSet link main app deps
View Source
var ServerSet = wire.NewSet(AppSet)
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
App *fiber.App
WS *ws.Hub
Cron *services.CronService
Mongo *mongo.Connection
AppConfig *configs.AppConfig
}
Server represents the main server configuration.
func NewApp ¶
func NewApp( ac *configs.AppConfig, lc *configs.LoggerConfig, eh *eh.ErrorsHandler, prr *routers.PrivateRouter, pbr *routers.PublicRouter, sr *routers.SwaggerRouter, wsr *routers.SocketRouter, mongo *mongo.Connection, ws *ws.Hub, cs *services.CronService, ) *Server
Click to show internal directories.
Click to hide internal directories.