internal

package
v0.0.0-...-3b1d31a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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 (c *Container) CacheManager(ctx context.Context) contracts.Cache

func (*Container) Cfg

func (c *Container) Cfg(_ context.Context) *config.Config

func (*Container) Close

func (c *Container) Close()

func (*Container) Error

func (c *Container) Error() error

Error returns the first initialization error, which can be set via SetError in a service definition.

func (*Container) Logger

func (c *Container) Logger(_ context.Context) *logrus.Logger

func (*Container) ProcessRunner

func (c *Container) ProcessRunner(ctx context.Context) *services.Runner

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

func (*Container) SetCfg

func (c *Container) SetCfg(s *config.Config)

func (*Container) SetError

func (c *Container) SetError(err error)

SetError sets the first error into container. The error is used in the public container to return an initialization error.

func (*Container) SetLogger

func (c *Container) SetLogger(s *logrus.Logger)

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 (*ServicesContainer) Executor

func (*ServicesContainer) ExtendableExecutor

func (c *ServicesContainer) ExtendableExecutor(ctx context.Context) contracts.Executor

func (*ServicesContainer) GdTaskManager

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL