Documentation ¶
Overview ¶
Copyright © 2021 Henning Dahlheim <hactar@cyberkraft.ch>
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
Copyright © 2021 Henning Dahlheim <hactar@cyberkraft.ch>
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
Index ¶
- type Absence
- type AbsenceType
- type Company
- type CreatTimeEntryReq
- type Hakuna
- func (h Hakuna) GetAbsences(year string) ([]Absence, error)
- func (h Hakuna) GetOverview() (Overview, error)
- func (h Hakuna) GetTasks() ([]Task, error)
- func (h Hakuna) GetTimeEntries(start time.Time, end time.Time) ([]TimeEntry, error)
- func (h Hakuna) GetTimer() (Timer, error)
- func (h Hakuna) Ping() (Pong, error)
- func (h Hakuna) StartTimer(data *StartTimerReq) (Timer, error)
- func (h Hakuna) StopTimer(data *StopTimerReq) (TimeEntry, error)
- type Overview
- type Pong
- type Project
- type ResponeError
- type StartTimerReq
- type StopTimerReq
- type Task
- type TimeEntry
- type Timer
- type User
- type Vacation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Absence ¶
type Absence struct { ID int `json:"id"` StartDate string `json:"start_date"` EndDate string `json:"end_date"` FirstHalfDay bool `json:"first_half_day"` SecondHalfDay bool `json:"second_half_day"` IsRecurring bool `json:"is_recurring"` WeeklyRepeatInterval int `json:"weekly_repeat_interval"` User User `json:"user"` AbsenceType AbsenceType `json:"absence_type"` }
type AbsenceType ¶
type CreatTimeEntryReq ¶
type Hakuna ¶
func (Hakuna) GetOverview ¶
func (Hakuna) GetTimeEntries ¶
func (Hakuna) StartTimer ¶
func (h Hakuna) StartTimer(data *StartTimerReq) (Timer, error)
type ResponeError ¶
type StartTimerReq ¶
type StartTimerReq struct { TaskId int `json:"task_id"` StartTime string `json:"start_time,omitempty"` ProjectId int `json:"project_id,omitempty"` Note string `json:"note,omitempty"` }
func NewStartTimerReq ¶
type StopTimerReq ¶
type StopTimerReq struct {
EndTime string `json:"end_time"`
}
func NewStopTimerReq ¶
func NewStopTimerReq(time time.Time) (*StopTimerReq, error)
type TimeEntry ¶
type TimeEntry struct { ID int `json:"id"` Note string `json:"note"` Date string `json:"date"` Duration string `json:"duration"` DurationInSeconds float64 `json:"duration_in_seconds"` StartTime string `json:"start_time"` EndTime string `json:"end_time"` User User `json:"user"` Task Task `json:"task"` Project Project `json:"project"` }
Click to show internal directories.
Click to hide internal directories.