application

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package application must be ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClockInUC

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

func NewClockInUseCase

func NewClockInUseCase(repo domain.WorkSessionRepository) *ClockInUC

func (*ClockInUC) Execute

func (uc *ClockInUC) Execute(t time.Time) (*domain.WorkSession, error)

type ClockOutUC

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

func NewClockOutUseCase

func NewClockOutUseCase(repo domain.WorkSessionRepository) *ClockOutUC

func (*ClockOutUC) Execute

func (uc *ClockOutUC) Execute(t time.Time) (*domain.WorkSession, error)

type GetStatsUC

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

GetStatsUC handles the business logic for calculating work session statistics

func NewGetStatsUseCase

func NewGetStatsUseCase(repo domain.WorkSessionRepository) *GetStatsUC

NewGetStatsUseCase creates a new instance of GetStatsUC with the provided repository

func (*GetStatsUC) Execute

func (gs *GetStatsUC) Execute() (domain.Stats, error)

Execute calculates and returns statistics for today, this week, and this month Fetches work sessions from the repository and sums their durations for each time period

type GetTodaySessionsUC

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

func NewGetTodaySessionsUseCase

func NewGetTodaySessionsUseCase(repo domain.WorkSessionRepository) *GetTodaySessionsUC

func (*GetTodaySessionsUC) Execute

func (uc *GetTodaySessionsUC) Execute() ([]*domain.WorkSession, error)

type RangeTime

type RangeTime struct {
	StartTime time.Time
	EndTime   time.Time
}

RangeTime represents a time range with start and end boundaries

Jump to

Keyboard shortcuts

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