config

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v1.1.0

type Config struct {
	DevMode bool `yaml:"dev_mode" default:"false"`

	Server struct {
		Listen string `yaml:"listen"`
	} `yaml:"server"`

	Static struct {
		Widget StaticService `yaml:"widget" anonymous:"true"`
		Docs   StaticService `yaml:"docs" anonymous:"true"`
	} `yaml:"static"`

	Upstream struct {
		Meta struct {
			Servers []string `yaml:"servers"`
		} `yaml:"meta"`
	} `yaml:"upstream"`
}

Config describes all configuration options for this app

var C Config

C is the config content that was populated from the corresponding config file

type StaticService

type StaticService struct {
	Endpoint string `yaml:"endpoint"`
	Root     string `yaml:"root"`
}

StaticService describes a service that serves static files

Jump to

Keyboard shortcuts

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