gantt

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 26, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

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 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

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultGanttProducer

type DefaultGanttProducer struct {
	Logger *log.TmLogger
	Config *specs.TimeMasterConfig
}

type FGTaskEndDateSorter

type FGTaskEndDateSorter []FrappeGanttTask

func (FGTaskEndDateSorter) Len

func (t FGTaskEndDateSorter) Len() int

func (FGTaskEndDateSorter) Less

func (t FGTaskEndDateSorter) Less(i, j int) bool

func (FGTaskEndDateSorter) Swap

func (t FGTaskEndDateSorter) Swap(i, j int)

type FGTaskSorter

type FGTaskSorter []FrappeGanttTask

func (FGTaskSorter) Len

func (t FGTaskSorter) Len() int

func (FGTaskSorter) Less

func (t FGTaskSorter) Less(i, j int) bool

func (FGTaskSorter) Swap

func (t FGTaskSorter) Swap(i, j int)

type FrappeGanttProducer

type FrappeGanttProducer struct {
	*DefaultGanttProducer
}

func NewFrappeGanttProducer

func NewFrappeGanttProducer(config *specs.TimeMasterConfig) *FrappeGanttProducer

func (*FrappeGanttProducer) Build

type FrappeGanttTask

type FrappeGanttTask struct {
	Id           string  `json:"id"`
	Name         string  `json:"name"`
	Start        string  `json:"start"`
	End          string  `json:"end"`
	Progress     float64 `json:"progress,omitempty"`
	Dependencies string  `json:"dependencies,omitempty"`
	CustomClass  string  `json:"custom_class,omitempty"`
	StartTime    int64   `json:"-"`
	EndTime      int64   `json:"-"`
}

Json format of the task required by the project: https://github.com/frappe/gantt Thanks for this project.

type ProducerOpts

type ProducerOpts struct {
	ShowActivityOnTasks bool
	OrderByEndTime      bool
}

type TimeMasterGanttProducer

type TimeMasterGanttProducer interface {
	Build(*specs.ScenarioSchedule, ProducerOpts) ([]byte, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL