common

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const PieChartFormat = "{b}\n{d}%"

Variables

This section is empty.

Functions

func DeepCopy

func DeepCopy(src, dst interface{}) error

func FixEmptyWord

func FixEmptyWord(em string) string

func GetPieSeriesOpt

func GetPieSeriesOpt() func(*charts.SingleSeries)

func GroupToPieData

func GroupToPieData(issueList []dao.IssueItem, stackHandler stackhandlers.StackHandler) ([]opts.PieData, []string)

func IssueListRetriever

func IssueListRetriever(issues []dao.IssueItem, match func(i int) bool) []dao.IssueItem

Types

type AreaStyle

type AreaStyle struct {
	Opacity float32 `json:"opacity,omitempty"`
}

type AxisLabel added in v1.4.0

type AxisLabel struct {
	Fortmatter string `json:"formatter,omitempty"`
}

type Chart

type Chart struct {
	Props Props `json:"props,omitempty"`
}

type FilterConditions

type FilterConditions struct {
	Type  string   `json:"type,omitempty"`
	Value []string `json:"value,omitempty"`
	Time  []int64  `json:"time,omitempty"`
}

type FrontendConditions

type FrontendConditions struct {
	// IterationIDs int64 `json:"iteration,omitempty"`
	IterationIDs []int64  `json:"iteration,omitempty"`
	AssigneeIDs  []string `json:"member,omitempty"`
}

type Grid

type Grid struct {
	Bottom int `json:"bottom,omitempty"`
	Top    int `json:"top,omitempty"`
	Right  int `json:"right,omitempty"`
}

type Item

type Item struct {
	Name      string    `json:"name,omitempty"`
	Stack     string    `json:"stack,omitempty"`
	Label     Label     `json:"label,omitempty"`
	Data      []int     `json:"data,omitempty"`
	AreaStyle AreaStyle `json:"areaStyle,omitempty"`
}

type Label

type Label struct {
	Fortmatter string `json:"formatter,omitempty"`
	Normal     Normal `json:"normal,omitempty"`
}

type Legend

type Legend struct {
	Show         bool `json:"show,omitempty"`
	Bottom       int  `json:"bottom,omitempty"`
	SelectedMode bool `json:"selectedMode,omitempty"`
}

type LineStyle added in v1.4.0

type LineStyle struct {
	Type string `json:"type,omitempty"`
}

type MarkItem added in v1.4.0

type MarkItem struct {
	Name       string `json:"name,omitempty"`
	Type       string `json:"type,omitempty"`
	ValueIndex int    `json:"valueIndex"`
}

type MarkLine added in v1.4.0

type MarkLine struct {
	LineStyle LineStyle  `json:"lineStyle,omitempty"`
	Data      []MarkItem `json:"data,omitempty"`
}

type MarkPoint added in v1.4.0

type MarkPoint struct {
	Data       []MarkItem `json:"data,omitempty"`
	SymbolSize int        `json:"symbolSize,omitempty"`
}

type Normal

type Normal struct {
	Position string `json:"position,omitempty"`
	Show     bool   `json:"show,omitempty"`
}

type Option

type Option struct {
	XAxis  XAxis    `json:"xAxis,omitempty"`
	YAxis  YAxis    `json:"yAxis,omitempty"`
	Series []Item   `json:"series,omitempty"`
	Color  []string `json:"color,omitempty"`
	Legend Legend   `json:"legend,omitempty"`
	Grid   Grid     `json:"grid,omitempty"`
}

type Overview

type Overview struct {
	Props OverviewProps `json:"props,omitempty"`
}

type OverviewProps

type OverviewProps struct {
	RenderType string        `json:"renderType,omitempty"`
	Value      OverviewValue `json:"value,omitempty"`
}

type OverviewText

type OverviewText struct {
	Text        string      `json:"text,omitempty"`
	StyleConfig StyleConfig `json:"styleConfig,omitempty"`
	Icon        string      `json:"icon,omitempty"`
	IconTip     string      `json:"iconTip,omitempty"`
}

type OverviewValue

type OverviewValue struct {
	Direction string         `json:"direction,omitempty"`
	Text      []OverviewText `json:"text,omitempty"`
}

type PieChart

type PieChart struct {
	Props PieChartProps `json:"props,omitempty"`
}

type PieChartItem

type PieChartItem struct {
	Name string         `json:"name,omitempty"`
	Data []PieChartPart `json:"data,omitempty"`
}

type PieChartOption

type PieChartOption struct {
	Series []PieChartItem `json:"series,omitempty"`
	Color  []string       `json:"color,omitempty"`
	Legend []string       `json:"legend,omitempty"`
}

type PieChartPart

type PieChartPart struct {
	Name  string `json:"name,omitempty"`
	Value int    `json:"value,omitempty"`
	Label Label  `json:"label,omitempty"`
}

type PieChartProps

type PieChartProps struct {
	Title     string         `json:"title,omitempty"`
	ChartType string         `json:"chartType,omitempty"`
	Option    PieChartOption `json:"option,omitempty"`
}

type Props

type Props struct {
	Title     string `json:"title,omitempty"`
	ChartType string `json:"chartType,omitempty"`
	Option    Option `json:"option,omitempty"`
}

type SplitLine added in v1.4.0

type SplitLine struct {
	Show bool `json:"show"`
}

type Stats

type Stats struct {
	Open      string `json:"open,omitempty"`
	Expire    string `json:"expire,omitempty"`
	Today     string `json:"today,omitempty"`
	Tomorrow  string `json:"tomorrow,omitempty"`
	Week      string `json:"week,omitempty"`
	Month     string `json:"month,omitempty"`
	Undefined string `json:"undefined,omitempty"`
	Reopen    string `json:"reopen,omitempty"`
}

type StatsState

type StatsState struct {
	Stats Stats `json:"stats,omitempty"`
}

type StyleConfig

type StyleConfig struct {
	FontSize int    `json:"fontSize,omitempty"`
	Bold     bool   `json:"bold,omitempty"`
	Color    string `json:"color,omitempty"`
}

type XAxis

type XAxis struct {
	Data      []string  `json:"data,omitempty"`
	Scale     bool      `json:"scale,omitempty"`
	AxisLabel AxisLabel `json:"axisLabel,omitempty"`
	SplitLine SplitLine `json:"splitLine,omitempty"`
	Type      string    `json:"type,omitempty"`
	Name      string    `json:"name,omitempty"`
}

type YAxis

type YAxis struct {
	Max float32 `json:"max,omitempty"`
	XAxis
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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