di

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigProvider = wire.NewSet(
	config.NewConfig,
)

Functions

This section is empty.

Types

type Application

type Application struct {
	// contains filtered or unexported fields
}

func SetupApplication

func SetupApplication() (*Application, func(), error)

func (*Application) GetConfig

func (app *Application) GetConfig() *config.Config

func (*Application) GetContext

func (app *Application) GetContext() context.Context

func (*Application) GetLogger

func (app *Application) GetLogger() *logrus.Logger

func (*Application) Run

func (app *Application) Run() error

func (*Application) ShutdownAndCleanup

func (app *Application) ShutdownAndCleanup()

type TestApplication

type TestApplication struct {
	*Application
	Ctx    context.Context
	Log    *logrus.Logger
	Config *config.Config
	// contains filtered or unexported fields
}

func SetupApplicationForIntegrationTests

func SetupApplicationForIntegrationTests(cfg *config.Config) (*TestApplication, func(), error)

type WaitGroup

type WaitGroup interface {
	Add(int)
	Done()
	Wait()
}

Jump to

Keyboard shortcuts

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