config

package
v0.0.0-...-a5936d2 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Server struct {
		Port            string `yaml:"port"`
		Host            string `yaml:"host"`
		RootEndpoint    string `yaml:"rootEndpoint"`
		StatusEndpoint  string `yaml:"statusEndpoint"`
		ShortenEndpoint string `yaml:"shortenEndpoint"`
		LimitEndpoint   string `yaml:"limitEndpoint"`
		FindEndpoint    string `yaml:"findEndpoint"`
	} `yaml:"server"`
	Database struct {
		Type string `yaml:"type"`
	} `yaml:"database"`
	ShortUrl struct {
		Length int `yaml:"length"`
	} `yaml:"shortUrl"`
}

func GetConfig

func GetConfig() Config

Jump to

Keyboard shortcuts

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