Documentation ¶
Overview ¶
Copyright (C) 2020 Daniele Rondina <geaaru@sabayonlinux.org> Credits goes also to Gogs authors, some code portions and re-implemented design are also coming from the Gogs project, which is using the go-macaron framework and was really source of ispiration. Kudos to them!
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Copyright (C) 2020-2021 Daniele Rondina <geaaru@sabayonlinux.org> Credits goes also to Gogs authors, some code portions and re-implemented design are also coming from the Gogs project, which is using the go-macaron framework and was really source of ispiration. Kudos to them!
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Copyright (C) 2020 Daniele Rondina <geaaru@sabayonlinux.org> Credits goes also to Gogs authors, some code portions and re-implemented design are also coming from the Gogs project, which is using the go-macaron framework and was really source of ispiration. Kudos to them!
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Copyright (C) 2020 Daniele Rondina <geaaru@sabayonlinux.org> Credits goes also to Gogs authors, some code portions and re-implemented design are also coming from the Gogs project, which is using the go-macaron framework and was really source of ispiration. Kudos to them!
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Copyright (C) 2020 Daniele Rondina <geaaru@sabayonlinux.org> Credits goes also to Gogs authors, some code portions and re-implemented design are also coming from the Gogs project, which is using the go-macaron framework and was really source of ispiration. Kudos to them!
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Copyright (C) 2020 Daniele Rondina <geaaru@sabayonlinux.org> Credits goes also to Gogs authors, some code portions and re-implemented design are also coming from the Gogs project, which is using the go-macaron framework and was really source of ispiration. Kudos to them!
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Index ¶
- type TimeMasterInstance
- func (i *TimeMasterInstance) AddAgendaTimesheet(t *specs.AgendaTimesheets)
- func (i *TimeMasterInstance) AddClient(c *specs.Client)
- func (i *TimeMasterInstance) AddResource(r *specs.Resource)
- func (i *TimeMasterInstance) AddScenario(s *specs.Scenario)
- func (i *TimeMasterInstance) CalculateActivityBusinessProgress(aname string) (float64, error)
- func (i *TimeMasterInstance) CalculateTimesheetsCostAndRevenue(sName string) error
- func (i *TimeMasterInstance) GetActivities(opts specs.ActivityResearch) ([]specs.Activity, error)
- func (i *TimeMasterInstance) GetActivityByName(aName string) (*specs.Activity, *specs.Client, error)
- func (i *TimeMasterInstance) GetAggregatedTimesheets(opts specs.TimesheetResearch, from, to string, users []string, tasks []string) (*[]specs.ResourceTsAggregated, error)
- func (i *TimeMasterInstance) GetAggregatedTimesheetsMap(opts specs.TimesheetResearch, from, to string, users []string, tasks []string) (map[string]*specs.ResourceTsAggregated, error)
- func (i *TimeMasterInstance) GetAllTaskMap() map[string]specs.Task
- func (i *TimeMasterInstance) GetClientByName(name string) (*specs.Client, error)
- func (i *TimeMasterInstance) GetClients() *[]specs.Client
- func (i *TimeMasterInstance) GetResourceByUser(user string) *specs.Resource
- func (i *TimeMasterInstance) GetResources() *[]specs.Resource
- func (i *TimeMasterInstance) GetScenarioByName(name string) (*specs.Scenario, error)
- func (i *TimeMasterInstance) GetScenarios() *[]specs.Scenario
- func (i *TimeMasterInstance) GetTasks(opts specs.TaskResearch) ([]specs.Task, error)
- func (i *TimeMasterInstance) GetTimesheets() *[]specs.AgendaTimesheets
- func (i *TimeMasterInstance) InitScheduler(sched scheduler.TimeMasterScheduler)
- func (i *TimeMasterInstance) Load() error
- func (i *TimeMasterInstance) LoadClientActivities(clientName, dir string) error
- func (i *TimeMasterInstance) LoadClientDir(dir string) error
- func (i *TimeMasterInstance) LoadResourceDir(dir string) error
- func (i *TimeMasterInstance) LoadScenarioDir(dir string) error
- func (i *TimeMasterInstance) LoadTimesheetsDir(dir string) error
- func (i *TimeMasterInstance) SetAgendaTimesheets(tt []specs.AgendaTimesheets)
- func (i *TimeMasterInstance) Validate(ignoreError bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TimeMasterInstance ¶
type TimeMasterInstance struct { Logger *log.TmLogger Config *specs.TimeMasterConfig Clients []specs.Client Resources []specs.Resource Scenarios []specs.Scenario Timesheets []specs.AgendaTimesheets }
func NewTimeMasterInstance ¶
func NewTimeMasterInstance(config *specs.TimeMasterConfig) *TimeMasterInstance
func (*TimeMasterInstance) AddAgendaTimesheet ¶
func (i *TimeMasterInstance) AddAgendaTimesheet(t *specs.AgendaTimesheets)
func (*TimeMasterInstance) AddClient ¶
func (i *TimeMasterInstance) AddClient(c *specs.Client)
func (*TimeMasterInstance) AddResource ¶
func (i *TimeMasterInstance) AddResource(r *specs.Resource)
func (*TimeMasterInstance) AddScenario ¶
func (i *TimeMasterInstance) AddScenario(s *specs.Scenario)
func (*TimeMasterInstance) CalculateActivityBusinessProgress ¶ added in v0.4.0
func (i *TimeMasterInstance) CalculateActivityBusinessProgress(aname string) (float64, error)
func (*TimeMasterInstance) CalculateTimesheetsCostAndRevenue ¶
func (i *TimeMasterInstance) CalculateTimesheetsCostAndRevenue(sName string) error
func (*TimeMasterInstance) GetActivities ¶
func (i *TimeMasterInstance) GetActivities(opts specs.ActivityResearch) ([]specs.Activity, error)
func (*TimeMasterInstance) GetActivityByName ¶
func (*TimeMasterInstance) GetAggregatedTimesheets ¶
func (i *TimeMasterInstance) GetAggregatedTimesheets(opts specs.TimesheetResearch, from, to string, users []string, tasks []string) (*[]specs.ResourceTsAggregated, error)
func (*TimeMasterInstance) GetAggregatedTimesheetsMap ¶
func (i *TimeMasterInstance) GetAggregatedTimesheetsMap(opts specs.TimesheetResearch, from, to string, users []string, tasks []string) (map[string]*specs.ResourceTsAggregated, error)
func (*TimeMasterInstance) GetAllTaskMap ¶
func (i *TimeMasterInstance) GetAllTaskMap() map[string]specs.Task
func (*TimeMasterInstance) GetClientByName ¶
func (i *TimeMasterInstance) GetClientByName(name string) (*specs.Client, error)
func (*TimeMasterInstance) GetClients ¶
func (i *TimeMasterInstance) GetClients() *[]specs.Client
func (*TimeMasterInstance) GetResourceByUser ¶
func (i *TimeMasterInstance) GetResourceByUser(user string) *specs.Resource
func (*TimeMasterInstance) GetResources ¶
func (i *TimeMasterInstance) GetResources() *[]specs.Resource
func (*TimeMasterInstance) GetScenarioByName ¶
func (i *TimeMasterInstance) GetScenarioByName(name string) (*specs.Scenario, error)
func (*TimeMasterInstance) GetScenarios ¶
func (i *TimeMasterInstance) GetScenarios() *[]specs.Scenario
func (*TimeMasterInstance) GetTasks ¶
func (i *TimeMasterInstance) GetTasks(opts specs.TaskResearch) ([]specs.Task, error)
func (*TimeMasterInstance) GetTimesheets ¶
func (i *TimeMasterInstance) GetTimesheets() *[]specs.AgendaTimesheets
func (*TimeMasterInstance) InitScheduler ¶
func (i *TimeMasterInstance) InitScheduler(sched scheduler.TimeMasterScheduler)
func (*TimeMasterInstance) Load ¶
func (i *TimeMasterInstance) Load() error
func (*TimeMasterInstance) LoadClientActivities ¶
func (i *TimeMasterInstance) LoadClientActivities(clientName, dir string) error
func (*TimeMasterInstance) LoadClientDir ¶
func (i *TimeMasterInstance) LoadClientDir(dir string) error
func (*TimeMasterInstance) LoadResourceDir ¶
func (i *TimeMasterInstance) LoadResourceDir(dir string) error
func (*TimeMasterInstance) LoadScenarioDir ¶
func (i *TimeMasterInstance) LoadScenarioDir(dir string) error
func (*TimeMasterInstance) LoadTimesheetsDir ¶
func (i *TimeMasterInstance) LoadTimesheetsDir(dir string) error
func (*TimeMasterInstance) SetAgendaTimesheets ¶
func (i *TimeMasterInstance) SetAgendaTimesheets(tt []specs.AgendaTimesheets)
func (*TimeMasterInstance) Validate ¶
func (i *TimeMasterInstance) Validate(ignoreError bool) error