config

package
v0.0.0-...-dffe54d Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: MIT Imports: 2 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 {
	Listen struct {
		Port int64  `yaml:"port"`
		Unix string `yaml:"unix"`
	} `yaml:"listen"`
	Debug   bool           `yaml:"debug"`
	Plugins []ConfigPlugin `yaml:"plugins"`
}

func NewConfigFromFile

func NewConfigFromFile(configFile string) (*Config, error)

type ConfigPlugin

type ConfigPlugin struct {
	Name     string    `yaml:"name"`
	Disabled bool      `yaml:"disabled"`
	Config   yaml.Node `yaml:"config"`
}

Jump to

Keyboard shortcuts

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