Documentation
¶
Index ¶
- Variables
- type Layers
- type PortGrouper
- type PortMatcher
- type Rules
- func (cb *Rules) AddEdge(src, dst string, port *node.Port)
- func (cb *Rules) AddNode(n *node.Node) error
- func (cb *Rules) CountRules() int
- func (cb *Rules) FromReader(r io.Reader) (err error)
- func (cb *Rules) Match(n *node.Node) (cluster string, ok bool)
- func (cb *Rules) Name() string
- func (cb *Rules) Write(w io.Writer) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type PortGrouper ¶
type PortGrouper struct {
// contains filtered or unexported fields
}
func NewGrouper ¶
func NewGrouper( similarity float64, ) *PortGrouper
func (*PortGrouper) IterGroups ¶
func (pg *PortGrouper) IterGroups( iter func(id int, members []string), )
type PortMatcher ¶
type PortMatcher struct {
// contains filtered or unexported fields
}
func FromPorts ¶
func FromPorts( ports node.Ports, ) *PortMatcher
func (*PortMatcher) Match ¶
func (pm *PortMatcher) Match(other *PortMatcher) (rv float64)
func (*PortMatcher) Merge ¶
func (pm *PortMatcher) Merge(other *PortMatcher)
type Rules ¶
type Rules struct {
// contains filtered or unexported fields
}
func NewRules ¶
func NewRules( b graph.NamedBuilderWriter, r exprRUN, ) *Rules
func (*Rules) CountRules ¶
Click to show internal directories.
Click to hide internal directories.