Documentation ¶
Index ¶
- type Container
- func (c *Container) CacheManager(ctx context.Context) contracts.Cache
- func (c *Container) Cfg(_ context.Context) *config.Config
- func (c *Container) Close()
- func (c *Container) Error() error
- func (c *Container) Logger(_ context.Context) *logrus.Logger
- func (c *Container) ProcessRunner(ctx context.Context) *services.Runner
- func (c *Container) Repositories() definitions.RepositoryContainer
- func (c *Container) ServerCommandFactory(ctx context.Context) *gameservercommands.ServerCommandFactory
- func (c *Container) Services() definitions.ServicesContainer
- func (c *Container) SetCfg(s *config.Config)
- func (c *Container) SetError(err error)
- func (c *Container) SetLogger(s *logrus.Logger)
- type RepositoryContainer
- type ServicesContainer
- func (c *ServicesContainer) APICaller(ctx context.Context) contracts.APIRequestMaker
- func (c *ServicesContainer) Executor(ctx context.Context) contracts.Executor
- func (c *ServicesContainer) ExtendableExecutor(ctx context.Context) contracts.Executor
- func (c *ServicesContainer) GdTaskManager(ctx context.Context) *gdaemonscheduler.TaskManager
- func (c *ServicesContainer) ProcessManager(ctx context.Context) contracts.ProcessManager
- func (c *ServicesContainer) Resty(ctx context.Context) *resty.Client
- func (c *ServicesContainer) SetAPICaller(s contracts.APIRequestMaker)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
func NewContainer ¶
func NewContainer() *Container
func (*Container) CacheManager ¶
func (*Container) Error ¶
Error returns the first initialization error, which can be set via SetError in a service definition.
func (*Container) ProcessRunner ¶
func (*Container) Repositories ¶
func (c *Container) Repositories() definitions.RepositoryContainer
func (*Container) ServerCommandFactory ¶
func (c *Container) ServerCommandFactory(ctx context.Context) *gameservercommands.ServerCommandFactory
func (*Container) Services ¶
func (c *Container) Services() definitions.ServicesContainer
type RepositoryContainer ¶
type RepositoryContainer struct { *Container // contains filtered or unexported fields }
func (*RepositoryContainer) GdTaskRepository ¶
func (c *RepositoryContainer) GdTaskRepository(ctx context.Context) domain.GDTaskRepository
func (*RepositoryContainer) ServerRepository ¶
func (c *RepositoryContainer) ServerRepository(ctx context.Context) domain.ServerRepository
func (*RepositoryContainer) ServerTaskRepository ¶
func (c *RepositoryContainer) ServerTaskRepository(ctx context.Context) domain.ServerTaskRepository
type ServicesContainer ¶
type ServicesContainer struct { *Container // contains filtered or unexported fields }
func (*ServicesContainer) APICaller ¶
func (c *ServicesContainer) APICaller(ctx context.Context) contracts.APIRequestMaker
func (*ServicesContainer) Executor ¶
func (c *ServicesContainer) Executor(ctx context.Context) contracts.Executor
func (*ServicesContainer) ExtendableExecutor ¶
func (c *ServicesContainer) ExtendableExecutor(ctx context.Context) contracts.Executor
func (*ServicesContainer) GdTaskManager ¶
func (c *ServicesContainer) GdTaskManager(ctx context.Context) *gdaemonscheduler.TaskManager
func (*ServicesContainer) ProcessManager ¶
func (c *ServicesContainer) ProcessManager(ctx context.Context) contracts.ProcessManager
func (*ServicesContainer) Resty ¶
func (c *ServicesContainer) Resty(ctx context.Context) *resty.Client
func (*ServicesContainer) SetAPICaller ¶
func (c *ServicesContainer) SetAPICaller(s contracts.APIRequestMaker)
Click to show internal directories.
Click to hide internal directories.