di

package
v0.0.0-...-15b5fa4 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2024 License: MIT Imports: 8 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(
	cfg *config.Config,
	logger *logrus.Logger,
	injectors ...Injector,
) (*Container, error)

func (*Container) Close

func (c *Container) Close()

func (*Container) GdTaskRepository

func (c *Container) GdTaskRepository(ctx context.Context) (domain.GDTaskRepository, error)

func (*Container) ProcessRunner

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

func (*Container) ServerRepository

func (c *Container) ServerRepository(ctx context.Context) (domain.ServerRepository, error)

func (*Container) ServerTaskRepository

func (c *Container) ServerTaskRepository(ctx context.Context) (domain.ServerTaskRepository, error)

type Injector

type Injector func(c *Container) error

func SetApiCaller

func SetApiCaller(s contracts.APIRequestMaker) Injector

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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