Documentation ¶
Index ¶
- type Summary
- type Toggl
- func (tgl *Toggl) GetClientID(workspaceID int, clientName string) (int, error)
- func (tgl *Toggl) GetDetailedReportPDF(workspaceID int, clientID int, from time.Time, to time.Time) ([]byte, error)
- func (tgl *Toggl) GetSummary(workspaceID int, clientID int, from time.Time, to time.Time) (*Summary, error)
- func (tgl *Toggl) GetSummaryReportPDF(workspaceID int, clientID int, from time.Time, to time.Time) ([]byte, error)
- func (tgl *Toggl) GetWorkspaceID(workspaceName string) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Summary ¶
type Summary struct {
Entries []summaryEntry
}
Summary represents Toggl summary report data with total tracked time per project.
type Toggl ¶
type Toggl struct {
APIToken string
}
Toggl represents a Toggl service configuration.
func (*Toggl) GetClientID ¶
GetClientID returns id of the specified Toggl client within the given. Only the given workspace is searched.
func (*Toggl) GetDetailedReportPDF ¶
func (tgl *Toggl) GetDetailedReportPDF(workspaceID int, clientID int, from time.Time, to time.Time) ([]byte, error)
GetDetailedReportPDF returns a Toggl detailed report PDF for days between the specified dates.
func (*Toggl) GetSummary ¶
func (tgl *Toggl) GetSummary(workspaceID int, clientID int, from time.Time, to time.Time) (*Summary, error)
GetSummary returns total tracked time per project between the specified dates.
Click to show internal directories.
Click to hide internal directories.