Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Module("container", fx.Provide(getserver.New), fx.Provide(addserver.New), fx.Provide(listservers.New), fx.Provide(reportserver.New), fx.Provide(renewserver.New), fx.Provide(removeserver.New), fx.Provide(cleanservers.New), fx.Provide(refreshservers.New), fx.Provide(reviveservers.New), fx.Provide(NewUseCaseConfigs), fx.Provide(NewContainer), )
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct { GetServer getserver.UseCase AddServer addserver.UseCase ListServers listservers.UseCase ReportServer reportserver.UseCase RenewServer renewserver.UseCase RemoveServer removeserver.UseCase CleanServers cleanservers.UseCase RefreshServers refreshservers.UseCase ReviveServers reviveservers.UseCase }
func NewContainer ¶ added in v0.14.0
func NewContainer( getServerUseCase getserver.UseCase, addServerUseCase addserver.UseCase, listServersUseCase listservers.UseCase, reportServerUseCase reportserver.UseCase, renewServerUseCase renewserver.UseCase, removeServerUseCase removeserver.UseCase, cleanServersUseCase cleanservers.UseCase, refreshServersUseCase refreshservers.UseCase, reviveServersUseCase reviveservers.UseCase, ) Container
type UseCaseConfigs ¶ added in v0.14.0
type UseCaseConfigs struct { fx.Out AddServerOptions addserver.UseCaseOptions ReportServerOptions reportserver.UseCaseOptions RefreshServersOptions refreshservers.UseCaseOptions ReviveServersOptions reviveservers.UseCaseOptions }
func NewUseCaseConfigs ¶ added in v0.14.0
func NewUseCaseConfigs(cfg config.Config) UseCaseConfigs
Click to show internal directories.
Click to hide internal directories.