config

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: Unlicense Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File string

Functions

This section is empty.

Types

type App

type App struct {
	Name string `yaml:"name"`
	Key  string `yaml:"key"`
}

type Config

type Config struct {
	HTTPServer *HTTPServer `yaml:"http"`
	Licence    *Licence    `yaml:"licence"`
	Storage    *Storage    `yaml:"storage"`

	App      *App      `yaml:"app"`
	Database *Database `yaml:"database"`
	Redis    *Redis    `yaml:"redis"`

	Services *Services `yaml:"services"`
}

func New

func New() (*Config, error)

func (*Config) UnmarshalYAML

func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error

type Database

type Database struct {
	Name     string `yaml:"name"`
	Password string `yaml:"password"`
}

type HTTPServer

type HTTPServer struct {
	Domains []string `yaml:"domains"`
	TLS     *TLS     `yaml:"tls"`
}

type Licence

type Licence struct {
	ID  string `yaml:"id"`
	Key string `yaml:"key"`
}

type Redis

type Redis struct {
	Password string `yaml:"password"`
}

type Services

type Services struct {
	GoogleMapsApiKey string `yaml:"google_maps_api_key"`
}

type Storage

type Storage struct {
	Data string `yaml:"data" default:"/var/lib/node-isp/"`
	Logs string `yaml:"logs" default:"/var/log/node-isp/"`
}

type TLS

type TLS struct {
	Email string `yaml:"email"`
}

Jump to

Keyboard shortcuts

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