Documentation
¶
Index ¶
Constants ¶
View Source
const ( NodeCondition = 1 LinkCondition = 2 )
Variables ¶
This section is empty.
Functions ¶
func ExecuteQuery ¶
func ExecuteQuery(query *Query, config *configuration.Config) (configuration.Config, error)
ExecuteQuery filters the configuration based on the provided query. It returns a new configuration containing only the nodes and links that match the query conditions.
Types ¶
type ConfigContext ¶
type ConfigContext struct { Config *configuration.Config NodesById map[string]*configuration.Node ChildrenMap map[string][]string // Maps parent node ID to list of child node IDs }
ConfigContext holds the configuration with pre-calculated maps for efficient querying
func NewConfigContext ¶
func NewConfigContext(config *configuration.Config) *ConfigContext
NewConfigContext creates a new ConfigContext with pre-calculated maps for efficient querying
type Query ¶
func ParseQuery ¶
ParseQuery parses a query from a YAML string.
func (*Query) YamlString ¶
YamlString returns the YAML representation of the query
Click to show internal directories.
Click to hide internal directories.