config

package
v0.0.0-...-5c2aece Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dump

func Dump(path string) error

Types

type Config

type Config struct {
	Listen   string              `yaml:"listen"`
	Location map[string]Location `yaml:"location"`
}

func Load

func Load(path string) (Config, error)

func LoadAndCreate

func LoadAndCreate(path string) (Config, error)

type Location

type Location struct {
	Path      string `yaml:"path"`
	ProxyPass string `yaml:"proxy_pass"`
}

Jump to

Keyboard shortcuts

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