config

package
v0.0.0-...-a9e4aaf Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2020 License: ISC 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 {
	Port string `yaml:"port"`
	Web  struct {
		CdnURL string `yaml:"cdn_url"`
		Jwt    string `yaml:"jwt"`
	} `yaml:"web"`
	Database struct {
		URL string `yaml:"url"`
	} `yaml:"database"`
	Storage struct {
		Endpoint  string `yaml:"endpoint"`
		Accesskey string `yaml:"accesskey"`
		Secretkey string `yaml:"secretkey"`
		Region    string `yaml:"region"`
		Bucket    string `yaml:"bucket"`
	} `yaml:"storage"`
	Endpoints struct {
		Sfw  []string `yaml:"sfw" json:"sfw"`
		Nsfw []string `yaml:"nsfw" json:"nsfw"`
	} `yaml:"endpoints"`
}

Config : Template for JSON Config

func LoadConfig

func LoadConfig(file string) Config

LoadConfig : Load config from yaml

Jump to

Keyboard shortcuts

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