Documentation
¶
Index ¶
Constants ¶
const (
ISO8601 = "2006-01-02T15:04:05-07:00"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Project ¶
type Project struct { Data struct { ID int `json:"id"` Wid int `json:"wid"` Cid int `json:"cid"` Name string `json:"name"` Billable bool `json:"billable"` IsPrivate bool `json:"is_private"` Active bool `json:"active"` At time.Time `json:"at"` Template bool `json:"template"` Color string `json:"color"` } `json:"data"` }
Project is the object representing project in toggl world. It is bound with Get project data API Response of toggl. See: https://github.com/toggl/toggl_api_docs/blob/master/chapters/projects.md#get-project-data
type ProjectRepository ¶
type ProjectRepository struct {
*Client
}
func (*ProjectRepository) GetProject ¶
GetProject returns the object representing project in toggl_exporter. It retrive the project detail using passed pid and create peculiar toggl project object.
type TimeEntry ¶
type TimeEntry struct { ID int `json:"id"` Wid int `json:"wid"` Pid int `json:"pid,omitempty"` Billable bool `json:"billable"` Start time.Time `json:"start"` Stop time.Time `json:"stop"` Duration time.Duration `json:"duration"` Description string `json:"description"` Tags []string `json:"tags"` At time.Time `json:"at"` }
TimeEntry is the object representing the time entry in toggl world. It is bound with Get time_entries API Response of toggl. See: https://github.com/toggl/toggl_api_docs/blob/master/chapters/time_entries.md#get-time-entry-details
type TimeEntryRepository ¶
type TimeEntryRepository struct {
*Client
}
func (*TimeEntryRepository) GetTimeEntries ¶
GetProject returns array of objects representing time entries in toggl_exporter. It retrive time entries data bound with api key and create array of peculiar time entry object.