configuration

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2025 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidValuesInConfig = errors.New("invalid values in config")

Functions

func ValidateIdentifier

func ValidateIdentifier(identifier string) bool

func ValidateIdentifierList

func ValidateIdentifierList(identifiers []string) bool

Types

type Config

type Config struct {
	//nolint:tagliatelle
	ModelName string `yaml:"model_name"`
	//nolint:tagliatelle
	DatabaseName string `yaml:"db_name"`
	//nolint:tagliatelle
	Roles     []Role     `yaml:"roles"`
	Templates []Template `yaml:"templates"`
}

func ReadConfig

func ReadConfig(wd string) (*Config, error)

type Role

type Role struct {
	Name string `yaml:"name"`
}

type Template

type Template struct {
	Path    string `yaml:"path"`
	Content string `yaml:"content"`
}

Jump to

Keyboard shortcuts

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