Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIs ¶
APIs define supported wakatime api.
func (*APIs) GetCodeActivity ¶
func (a *APIs) GetCodeActivity() (ca *CodeActivity, err error)
GetCodeActivity fetch wakatime code activity api.
func (*APIs) GetLanguages ¶
GetLanguages fetch wakatime code activity api.
type CodeActivity ¶
type CodeActivity struct { Data []struct { GrandTotal struct { Decimal string `json:"decimal"` Digital string `json:"digital"` Hours int `json:"hours"` Minutes int `json:"minutes"` Text string `json:"text"` TotalSeconds float64 `json:"total_seconds"` } `json:"grand_total"` Range struct { Date string `json:"date"` End time.Time `json:"end"` Start time.Time `json:"start"` Text string `json:"text"` Timezone string `json:"timezone"` } `json:"range"` } `json:"data"` }
CodeActivity defines the strut of wakatime code activity.
Click to show internal directories.
Click to hide internal directories.