Documentation
¶
Index ¶
- func ConfigModule(cfg config.DecisionMakerConfig) (fx.Option, error)
- func HandlerModule(opt fx.Option) (fx.Option, error)
- func NewRestApp(configName string, configDirPath string) (*fx.App, error)
- func ServiceModule() (fx.Option, error)
- func StartRestApp(lc fx.Lifecycle, cfg config.ServerConfig, mtlsCfg config.MTLSConfig, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigModule ¶
func ConfigModule(cfg config.DecisionMakerConfig) (fx.Option, error)
ConfigModule creates an Fx module that provides configuration structs
func HandlerModule ¶
HandlerModule creates an Fx module that provides the REST handler, return *rest.Handler
func ServiceModule ¶
func StartRestApp ¶
func StartRestApp(lc fx.Lifecycle, cfg config.ServerConfig, mtlsCfg config.MTLSConfig, handler *rest.Handler) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.