config

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Build   string
	Version string
)

Functions

This section is empty.

Types

type Config

type Config struct {
	ApiVersion string   `yaml:"apiVersion"`
	Kind       string   `yaml:"kind"`
	MetaData   MetaData `yaml:"metadata"`
	Spec       Spec     `yaml:"spec"`
}

func New

func New() *Config

type Disabled added in v0.3.0

type Disabled struct {
	Name string `yaml:"name"`
	Path string `yaml:"path"`
}

type Enabled added in v0.3.0

type Enabled struct {
	Name     string `yaml:"name"`
	Path     string `yaml:"path"`
	Priority int64  `yaml:"priority"`
	Weight   int64  `yaml:"weight"`
}

type Logger added in v1.14.0

type Logger struct {
	CallerSkip   int64  `yaml:"callerSkip"`
	FileCompress bool   `yaml:"fileCompress"`
	FileName     string `yaml:"fileName"`
	LogLevel     string `yaml:"logLevel"`
	MaxAge       int64  `yaml:"maxAge"`
	MaxBackups   int64  `yaml:"maxBackups"`
	MaxSize      int64  `yaml:"maxSize"`
}

type MetaData

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

type Plugin added in v0.3.0

type Plugin struct {
	Disabled []Disabled `yaml:"disabled"`
	Enabled  []Enabled  `yaml:"enabled"`
}

type Spec

type Spec struct {
	Fetch  Plugin `yaml:"fetch"`
	Filter Plugin `yaml:"filter"`
	Score  Plugin `yaml:"score"`
	Logger Logger `yaml:"logger"`
}

Jump to

Keyboard shortcuts

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