Documentation ¶
Index ¶
- func CalcTotalHeartbeatsDuration(user User, heartbeats []Heartbeat) int64
- func SaveHeartbeatIfNotExist(heartbeat Heartbeat) bool
- type GitIntegration
- type Heartbeat
- type PmIntegration
- type Project
- type TimeTracked
- type User
- func (u *User) AfterFind(db *gorm.DB) error
- func (u User) Heartbeats() []Heartbeat
- func (u User) NumHeartbeatsChartData() string
- func (u User) NumReceivedPushes() int
- func (u User) PullNewestHeartbeats()
- func (u User) TimeTrackedChartData() string
- func (u User) TopThreeLanguages() [][]string
- func (u User) TotalMonthTimeTacked() string
- func (u User) TotalYearTimeTacked() string
- func (u User) Verify() []error
- type WebhookEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SaveHeartbeatIfNotExist ¶
Types ¶
type GitIntegration ¶
type Heartbeat ¶
type Heartbeat struct { Id int64 // Database ID UserId int64 Project string // Associated project on Wakatime (git project) Branch string // Git branch Entity string Wid string // Wakatime heartbeat ID IsDebugging bool // If the heartbeat was sent during a debug IsWrite bool // If the heartbeat was sent during a write Language string // Language of the file being edited during the heartbeat Type string Time time.Time // Time of the heartbeat }
type PmIntegration ¶
type PmIntegration struct { Id int64 // contains filtered or unexported fields }
type Project ¶
type Project struct { Id int64 UserId int64 Name string `form:"name"` GitIntegrationName string `form:"gitIntegrationName"` GitRepoName string `form:"gitRepoName"` PmIntegrationName string `form:"pmIntegrationName"` NumRecievedWebhooks int CreatedAt time.Time }
func (Project) TotalHours ¶
type TimeTracked ¶
type User ¶
type User struct { Id int64 `form:"id"` Name string `form:"name"` Email string `form:"email"` Password string `form:"password"` WakaTimeApiKey string `form:"wakaTimeApiKey"` IsSyncingWakaTime bool LastWakaTimeSync time.Time CreatedAt time.Time // Associated Models Projects []Project }
func (User) Heartbeats ¶
func (User) NumHeartbeatsChartData ¶
func (User) NumReceivedPushes ¶
func (User) PullNewestHeartbeats ¶
func (u User) PullNewestHeartbeats()
func (User) TimeTrackedChartData ¶
func (User) TopThreeLanguages ¶
func (User) TotalMonthTimeTacked ¶
func (User) TotalYearTimeTacked ¶
Click to show internal directories.
Click to hide internal directories.