Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Component = &app.Component{ Constructor: func(container container.Container) error { return container.Provide(func(limiter limiter.Limiter, logger logger.Logger, appConfig *app.Config, listener listener.Listener) Server { s := New(limiter, logger, listener) s.Use(append([]middleware.Func{middleware.Logger(logger)}, middleware.ReadWriteCounter(appConfig, logger)...)...) return s }) }, BindFlags: nil, Serve: func(c container.Container) error { server, err := container.Get[Server](c) if err != nil { return err } closer, err := container.Get[closer.Closer](c) if err != nil { return err } return server.Serve(closer.GetContext()) }, }
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.