di

package
v0.0.0-...-27b9057 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MPL-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildTestAdapters

func BuildTestAdapters(contextContext context.Context, tb testing.TB) (sqlite.TestedItems, func(), error)

Types

type Service

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

func BuildService

func BuildService(contextContext context.Context, configConfig config.Config) (Service, func(), error)

func NewService

func NewService(
	app app.Application,
	server http.Server,
	downloader *downloader.Downloader,
	receivedEventSubscriber *memorypubsub.ReceivedEventSubscriber,
	eventSavedEventSubscriber *sqlitepubsub.EventSavedEventSubscriber,
	metricsTimer *timer.Metrics,
	transactionRunner *sqlite.TransactionRunner,
	taskScheduler *downloader.TaskScheduler,
	migrationsRunner *migrations.Runner,
	migrations migrations.Migrations,
	migrationsProgressCallback migrations.ProgressCallback,
	logger logging.Logger,
) Service

func (Service) App

func (s Service) App() app.Application

func (Service) ExecuteMigrations

func (s Service) ExecuteMigrations(ctx context.Context) error

func (Service) Run

func (s Service) Run(ctx context.Context) error

type TestApplication

type TestApplication struct {
	GetEventsHandler *app.GetEventsHandler

	EventRepository *mocks.EventRepository
}

func BuildTestApplication

func BuildTestApplication(contextContext context.Context, tb testing.TB) (TestApplication, error)

Jump to

Keyboard shortcuts

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