check

package
v0.20.2 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check[T any](
	parser graph.NodeParser[T],
	display func(node *graph.Node[T]) string,
	cfg *Config,
	callbacks graph.LoadCallbacks[T],
) error

Types

type Config

type Config struct {
	Path                      string
	Entrypoints               []string            `yaml:"entrypoints"`
	AllowCircularDependencies bool                `yaml:"allowCircularDependencies"`
	Aliases                   map[string][]string `yaml:"aliases"`
	WhiteList                 map[string][]string `yaml:"allow"`
	BlackList                 map[string][]string `yaml:"deny"`
}

func (*Config) Check

func (c *Config) Check(from, to string) (bool, error)

func (*Config) Init

func (c *Config) Init(path string)

Jump to

Keyboard shortcuts

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