Documentation ¶
Index ¶
- Variables
- func CalcTree(db *eodb.DB, elem int) (string, bool, string)
- func CalcTreeCat(db *eodb.DB, elems map[int]types.Empty) (string, bool, string)
- func ElemCreateSize(parents []int, db *eodb.DB) (int, bool, string)
- func NewNotationTree(db *eodb.DB) *notationTree
- type BreakDownTree
- type Graph
- func (g *Graph) AddElem(elem int, special bool) (string, bool)
- func (g *Graph) Close(special bool, splines string)
- func (g *Graph) NodeCount() int
- func (g *Graph) Render(special bool, layout graphviz.Layout, format graphviz.Format) (*bytes.Buffer, error)
- func (g *Graph) String(special bool, splines string) string
- type InfoTree
- type SizeTree
- type Tree
- type WordTree
Constants ¶
This section is empty.
Variables ¶
View Source
var GraphOpts = []*discordgo.ApplicationCommandOption{ { Type: discordgo.ApplicationCommandOptionString, Name: "output_type", Description: "The output type of the graph!", Required: false, Choices: []*discordgo.ApplicationCommandOptionChoice{ { Name: "PNG", Value: "PNG", }, { Name: "SVG", Value: "SVG", }, { Name: "Text", Value: "Text", }, { Name: "DOT", Value: "DOT", }, }, }, { Type: discordgo.ApplicationCommandOptionString, Name: "layout", Description: "The layout engine to use for rendering images!", Choices: []*discordgo.ApplicationCommandOptionChoice{ { Name: "Dot", Value: "Dot", }, { Name: "Twopi", Value: "Twopi", }, }, }, { Type: discordgo.ApplicationCommandOptionBoolean, Name: "distinct", Description: "Whether to style the primary elements of the graph differently", }, }
Functions ¶
func NewNotationTree ¶
Types ¶
type BreakDownTree ¶
type BreakDownTree struct { Added map[int]types.Empty DB *eodb.DB Breakdown map[string]int // map[userid]count Total int Tree bool }
func (*BreakDownTree) AddElem ¶
func (b *BreakDownTree) AddElem(elem int, noerror ...bool) (bool, string)
func (*BreakDownTree) GetStringArr ¶
func (b *BreakDownTree) GetStringArr() []string
type SizeTree ¶
type SizeTree struct { Size int // contains filtered or unexported fields }
func NewSizeTree ¶
type WordTree ¶
type WordTree struct { CalcTree bool // contains filtered or unexported fields }
func NewWordTree ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.