config

package
v0.0.0-...-3224d7c Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2023 License: Apache-2.0 Imports: 2 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 {
	FQDN string `yaml:"fqdn"`
	Port string `yaml:"port"`
	DB   DB     `yaml:"db"`
	Meta Meta   `yaml:"meta"`
	Mode string `yaml:"mode"`
}
var QipConfig Config

func LoadConfig

func LoadConfig(reader io.Reader) (Config, error)

LoadConfig 設定を読み込む

type DB

type DB struct {
	Host     string `yaml:"host"`
	Port     string `yaml:"port"`
	User     string `yaml:"user"`
	Password string `yaml:"password"`
	DBName   string `yaml:"name"`
}

type Maintainer

type Maintainer struct {
	Name  string `yaml:"name"`
	Email string `yaml:"email"`
}

type Meta

type Meta struct {
	Name        string     `yaml:"name"`
	Description string     `yaml:"description"`
	Maintainer  Maintainer `yaml:"maintainer"`
}

Jump to

Keyboard shortcuts

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