initialize

package
v0.0.0-...-4d895cd Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DateTimeProvider

type DateTimeProvider interface {
	Now() datetime.DateTime
}

type PeriodsRepository

type PeriodsRepository interface {
	GetCount(ctx context.Context) (uint64, error)
}

type UnitOfWork

type UnitOfWork interface {
	SetStartDate(date datetime.Date)
	CreatePeriod(period entities.Period) error
	Commit(ctx context.Context) error
}

type UseCase

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

func NewUseCase

func NewUseCase(
	periods PeriodsRepository,
	provider DateTimeProvider,
	unit UnitOfWork,
) *UseCase

func (*UseCase) Execute

func (uc *UseCase) Execute(ctx context.Context, startDate datetime.Date) error

Jump to

Keyboard shortcuts

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