config

package
v0.0.0-...-d7d936e Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiHost

type ApiHost struct {
	Name            string   `yaml:"name"`
	Url             string   `yaml:"url"`
	Path            string   `yaml:"path,omitempty"`
	ApiKey          string   `yaml:"apiKey,omitempty"`
	ResponseCityKey string   `yaml:"responseCityKey,omitempty"`
	LogHeaders      []string `yaml:"logHeaders,omitempty"`
	Fallback        bool     `yaml:"fallback,omitempty"`
}

type Cache

type Cache struct {
	Url   string `yaml:"url,omitempty"`
	User  string `yaml:"user,omitempty"`
	Pass  string `yaml:"password,omitempty"`
	Port  string `yaml:"port,omitempty"`
	Proto string `yaml:"protocol,omitempty"`
}

type Config

type Config struct {
	Cache Cache
	Apis  []ApiHost
}

func Load

func Load() *Config

Jump to

Keyboard shortcuts

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