Documentation ¶
Index ¶
- Constants
- func NewNamespaceColorMap(values map[string]string) map[Namespace]Color
- type Color
- type Component
- func (c *Component) AddBytesInSize(bytes int)
- func (c *Component) Color() Color
- func (c *Component) Colorize(color Color)
- func (c *Component) ExtendID()
- func (c *Component) HasColor() bool
- func (c *Component) ID() string
- func (c *Component) IsSizeNormalized() bool
- func (c *Component) IsThirdParty() bool
- func (c *Component) Namespace() Namespace
- func (c *Component) NormalizeSize(normalizedSize float64)
- func (c *Component) NormalizedSize() float64
- func (c *Component) SetStability(stability float64)
- func (c *Component) SizeBytes() int
- func (c *Component) Stability() float64
- func (c *Component) UseNamespaceAsID()
- type Components
- type Graph
- func (g *Graph) CalculateStability()
- func (g *Graph) Colorize(namespaceColorMap map[Namespace]Color)
- func (g *Graph) ColorizeThirdParty(color Color)
- func (g *Graph) Components() Components
- func (g *Graph) CreateCustomComponents(namespaces Namespaces) *Graph
- func (g *Graph) ExcludeChildComponents(namespaces Namespaces) *Graph
- func (g *Graph) ExcludeParentComponents(namespaces Namespaces) *Graph
- func (g *Graph) ExtendComponentIDs(idRegexpPatternAndSections map[string]int) error
- func (g *Graph) Imports() Imports
- func (g *Graph) IncludeChildComponents(namespaces Namespaces) *Graph
- func (g *Graph) IncludeOnlyComponents(namespaces Namespaces) *Graph
- func (g *Graph) IncludeParentAndChildComponents(parentComponentNamespaces Namespaces, childComponentNamespaces Namespaces) *Graph
- func (g *Graph) IncludeParentComponents(namespaces Namespaces) *Graph
- func (g *Graph) MakeUniqueComponentIDs()
- func (g *Graph) NormalizeComponentSizes()
- func (g *Graph) RemoveThirdPartyComponents() *Graph
- func (g *Graph) String() string
- type GraphConfig
- type Import
- type Imports
- type Namespace
- func (ns Namespace) Contains(another Namespace) bool
- func (ns Namespace) ExtendComponentID(componentIDSections string) string
- func (ns Namespace) HasPrefix(prefix string) bool
- func (ns Namespace) LastSection() string
- func (ns Namespace) String() string
- func (ns Namespace) TrimPrefix(prefix string) Namespace
- type Namespaces
Constants ¶
View Source
const Slash = "/"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Component ¶
type Component struct {
// contains filtered or unexported fields
}
func (*Component) AddBytesInSize ¶
func (*Component) IsSizeNormalized ¶
func (*Component) IsThirdParty ¶
func (*Component) NormalizeSize ¶
func (*Component) NormalizedSize ¶
func (*Component) SetStability ¶
func (*Component) UseNamespaceAsID ¶
func (c *Component) UseNamespaceAsID()
type Components ¶
type Components []*Component
func (Components) OrderByStability ¶
func (components Components) OrderByStability() Components
type Graph ¶
type Graph struct {
// contains filtered or unexported fields
}
func ApplyGraphConfig ¶
func ApplyGraphConfig(conf *GraphConfig, componentGraph *Graph) (*Graph, error)
func (*Graph) CalculateStability ¶
func (g *Graph) CalculateStability()
func (*Graph) ColorizeThirdParty ¶
func (*Graph) Components ¶
func (g *Graph) Components() Components
func (*Graph) CreateCustomComponents ¶
func (g *Graph) CreateCustomComponents(namespaces Namespaces) *Graph
func (*Graph) ExcludeChildComponents ¶
func (g *Graph) ExcludeChildComponents(namespaces Namespaces) *Graph
func (*Graph) ExcludeParentComponents ¶
func (g *Graph) ExcludeParentComponents(namespaces Namespaces) *Graph
func (*Graph) ExtendComponentIDs ¶
func (*Graph) IncludeChildComponents ¶
func (g *Graph) IncludeChildComponents(namespaces Namespaces) *Graph
func (*Graph) IncludeOnlyComponents ¶
func (g *Graph) IncludeOnlyComponents(namespaces Namespaces) *Graph
func (*Graph) IncludeParentAndChildComponents ¶
func (g *Graph) IncludeParentAndChildComponents( parentComponentNamespaces Namespaces, childComponentNamespaces Namespaces, ) *Graph
func (*Graph) IncludeParentComponents ¶
func (g *Graph) IncludeParentComponents(namespaces Namespaces) *Graph
func (*Graph) MakeUniqueComponentIDs ¶
func (g *Graph) MakeUniqueComponentIDs()
func (*Graph) NormalizeComponentSizes ¶
func (g *Graph) NormalizeComponentSizes()
func (*Graph) RemoveThirdPartyComponents ¶
type GraphConfig ¶
type GraphConfig struct { ExtendComponentIDs map[string]int IncludeThirdPartyComponents bool ThirdPartyComponentsColor Color IncludeParentComponents Namespaces IncludeChildComponents Namespaces ExcludeParentComponents Namespaces ExcludeChildComponents Namespaces CustomComponents Namespaces OnlyComponents Namespaces ComponentColors map[Namespace]Color EnableComponentSize bool }
type Namespace ¶
type Namespace string
func NewNamespace ¶
func (Namespace) ExtendComponentID ¶
func (Namespace) LastSection ¶
func (Namespace) TrimPrefix ¶
type Namespaces ¶
type Namespaces []Namespace
func NewNamespaces ¶
func NewNamespaces(values []string) Namespaces
Click to show internal directories.
Click to hide internal directories.