Documentation
¶
Overview ¶
data structure for shifts
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Job ¶
type Job struct { StartTime string `json:"starttime"` EndTime string `json:"endtime"` ID string `json:"id"` ProjectName string `json:"name"` Tags []string `json:"tags"` Description string `json:"description"` }
Job a single job unit structure
type Project ¶
type Project struct { Name string `json:"name"` Company string `json:"company"` Tags []string `json:"tags"` Description string `json:"description"` SheduledTime time.Time `json:"sheduledTime"` TotalTime time.Time `json:"totalTime"` Jobs []Job `json:"job"` }
Project data structure
type Project2 ¶
type Project2 struct { Name string `json:"name"` Company string `json:"company"` Tags []string `json:"tags"` Description string `json:"description"` SheduledTime time.Time `json:"sheduledTime"` TotalTime time.Time `json:"totalTime"` Jobs []Job `json:"job"` }
Project a 2Project structure
type TimeStats ¶
type TimeStats struct {
// contains filtered or unexported fields
}
TimeStats represtents the overall hours stats
type TimeTable ¶
type TimeTable struct { Name string `json:"name"` MonthlyHours int `json:"monthlyhours"` WeeklyHours int `json:"weeklyhours"` DailyHours int `json:"dailyhours"` Workdays bool `json:"workdays"` RunningJob string `json:"runningjob"` Days []day `json:"days"` Projects []Project `json:"projects"` }
TimeTable the root file structure
func (TimeTable) AddProject ¶
AddProject adds new project if it not exists, by unique name
Click to show internal directories.
Click to hide internal directories.