settings

package
v0.0.0-...-2ed13ab Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	HTTP []*Endpoint `yaml:"http"`
}

type Config

type Config struct {
	API     API     `yaml:"api"`
	Plugins Plugins `yaml:"plugins"`
	WEB     WEB     `yaml:"web"`
}

func ParseConfigFile

func ParseConfigFile(filePath string) (Config, error)

func (*Config) Validate

func (c *Config) Validate() error

type Endpoint

type Endpoint struct {
	Address string `yaml:"address"`
}

type ORM

type ORM struct {
	Debug bool `yaml:"debug"`
}

type Plugins

type Plugins struct {
	SailHome   SailHome   `yaml:"sailhome"`
	Prometheus Prometheus `yaml:"prometheus"`
}

type Prometheus

type Prometheus struct {
	Path          string `yaml:"path"`
	ListenAddress string `yaml:"listen_address"`
}

type SailHome

type SailHome struct {
	DBSelect   string `yaml:"db_select"`
	SQLite     string `yaml:"sqlite"`
	PostgreSQL string `yaml:"postgresql"`
}

type WEB

type WEB struct {
	ORM ORM `yaml:"orm"`
}

Jump to

Keyboard shortcuts

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