config

package
v0.0.0-...-6875e1c Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BestdoriAPIUrl *url.URL
View Source
var Version string

Functions

This section is empty.

Types

type YamlConfig

type YamlConfig struct {
	RunAddr  string             `yaml:"run-addr"`
	Debug    bool               `yaml:"debug"`
	API      YamlConfigAPI      `yaml:"api"`
	Database YamlConfigDatabase `yaml:"database"`
}
var Config *YamlConfig

func NewYamlConfig

func NewYamlConfig() *YamlConfig

type YamlConfigAPI

type YamlConfigAPI struct {
	BestdoriAPI string `yaml:"bestdori-api"`
}

type YamlConfigDatabase

type YamlConfigDatabase struct {
	Mysql          string `yaml:"mysql"`
	MeiliSearch    string `yaml:"meilisearch"`
	MeiliSearchKey string `yaml:"meilisearch-key"`
}

Jump to

Keyboard shortcuts

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