workhours

package
v0.0.0-...-52ba237 Latest Latest
Warning

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

Go to latest
Published: May 3, 2020 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	ID          int         `json:"id"`
	Pid         int         `json:"pid"`
	Tid         interface{} `json:"tid"`
	UID         int         `json:"uid"`
	Description string      `json:"description"`
	Start       string      `json:"start"`
	End         string      `json:"end"`
	Updated     string      `json:"updated"`
	Dur         int         `json:"dur"`
	User        string      `json:"user"`
	UseStop     bool        `json:"use_stop"`
	Client      string      `json:"client"`
	Project     string      `json:"project"`
	Task        interface{} `json:"task"`
	Billable    float64     `json:"billable"`
	IsBillable  bool        `json:"is_billable"`
	Cur         string      `json:"cur"`
	Tags        []string    `json:"tags"`
}

type Report

type Report struct {
	TotalGrand      int               `json:"total_grand"`
	TotalBillable   int               `json:"total_billable"`
	TotalCount      int               `json:"total_count"`
	PerPage         int               `json:"per_page"`
	TotalCurrencies []TotalCurrencies `json:"total_currencies"`
	Data            []Data            `json:"data"`

	Start time.Time
	End   time.Time
}

func Get

func Get(_ Source) (Report, error)

type Source

type Source struct {
	Toggl Toggl `json:"toggl"`
}

type Toggl

type Toggl struct {
	APIKey      string `json:"api_key"`
	WorkspaceID string `json:"workspace_id"`
}

type TotalCurrencies

type TotalCurrencies struct {
	Currency string  `json:"currency"`
	Amount   float64 `json:"amount"`
}

Jump to

Keyboard shortcuts

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