config

package
v0.0.0-...-c1e63d8 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ProjectDirectory            string            `toml:"project_directory"`
	ExtendComponentIDs          map[string]int    `toml:"extend_ids"`
	IncludeThirdPartyComponents bool              `toml:"include_third_party"`
	ThirdPartyComponentsColor   string            `toml:"third_party_color"`
	IncludeParentComponents     []string          `toml:"include_parents"`
	IncludeChildComponents      []string          `toml:"include_children"`
	ExcludeParentComponents     []string          `toml:"exclude_parents"`
	ExcludeChildComponents      []string          `toml:"exclude_children"`
	CustomComponents            []string          `toml:"custom"`
	OnlyComponents              []string          `toml:"only"`
	ComponentColors             map[string]string `toml:"colors"`
	EnableComponentSize         bool              `toml:"enable_size"`
}

func (*Config) ToComponentGraphConfig

func (conf *Config) ToComponentGraphConfig() *component.GraphConfig

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

func NewReader

func NewReader(fileReader fs.FileReader) *Reader

func (*Reader) ReadConfig

func (r *Reader) ReadConfig() (*Config, error)

Jump to

Keyboard shortcuts

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