config

package
v0.0.0-...-d84fa90 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MissingField

func MissingField(field string) error

Types

type ClientConfig

type ClientConfig struct {
	Name       string
	Url        string
	StaticPath string
	IndexPath  string
}

type Config

type Config struct {
	Env          string
	Port         string
	ClientConfig ClientConfig
	ServerConfig ServerConfig
	Hash         string
}

func New

func New(configPath string) (*Config, []error)

func NewFromFile

func NewFromFile(configPath string) *Config

type ServerConfig

type ServerConfig struct {
	Name string
	Url  string
}

Jump to

Keyboard shortcuts

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