Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AppSet = wire.NewSet( NewApp, configs.ConfigsSet, router.RouterSet, adapters.AdaptersSet, )
View Source
var MigrationsFS embed.FS
View Source
var ServerSet = wire.NewSet(AppSet)
Functions ¶
func RunMigrate ¶
func RunMigrate(connectionStr string)
Types ¶
type Server ¶
type Server struct { App *fiber.App Bot *telegram.TelegramListener PubAdapter *publisher.EventPublisherAdapter AppConfig *configs.AppConfig }
Server represents the main server configuration.
func NewApp ¶
func NewApp( ac *configs.AppConfig, eh *eh.ErrorsHandler, prr *router.PrivateRouter, pbr *router.PublicRouter, br *router.BotRouter, sr *router.SwaggerRouter, bot *telegram.TelegramListener, ps *publisher.EventPublisherAdapter, pc *configs.PostgresConfig, ) *Server
Click to show internal directories.
Click to hide internal directories.