model

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Project

type Project struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

Project represents project in Toggl Track, which is behave as attribute of the time entry. Unused properties are removed and some of needed properties are made use easily.

type ProjectRepository

type ProjectRepository interface {
	GetProject(ctx context.Context, pid string) (*Project, error)
}

TimeEntryRepository interface is the implementation required of project.

type TimeEntry

type TimeEntry struct {
	Pid      int
	Duration time.Duration
}

TimeEntry represents individual units of time in Toggl Track. Unused properties are removed and some of needed properties are made use easily.

type TimeEntryRepository

type TimeEntryRepository interface {
	GetTimeEntries(ctx context.Context) ([]TimeEntry, error)
}

TimeEntryRepository interface is the implementation required of time entry.

Jump to

Keyboard shortcuts

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