report

package
v0.0.0-...-bca3e58 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CatsEntity

type CatsEntity struct {
	CatsID    string
	Text      string
	Durations map[string]time.Duration
}

type ClockifyTimeEntry

type ClockifyTimeEntry struct {
	Description  string `json:"description"`
	TimeInterval struct {
		Start    string `json:"start"`
		End      string `json:"end"`
		Duration string `json:"duration"`
	} `json:"timeInterval"`
	Project struct {
		Name string `json:"name"`
	} `json:"project"`
}

type Reporter

type Reporter struct {
	Repository RepositoryInterface
}

func (*Reporter) Generate

func (r *Reporter) Generate(year int, week int, category string, withText bool) string

type ReporterInterface

type ReporterInterface interface {
	Generate(year int, week int, category string, withText bool) string
}

type Repository

type Repository struct {
	WorkspaceID string
	UserID      string
	ApiKey      string
}

func (Repository) FetchClockifyData

func (r Repository) FetchClockifyData(start string) []ClockifyTimeEntry

type RepositoryInterface

type RepositoryInterface interface {
	FetchClockifyData(start string) []ClockifyTimeEntry
}

Jump to

Keyboard shortcuts

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