config

package
v0.0.0-...-a49857f Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: GPL-3.0 Imports: 0 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 interface {
	DBConfig() DBConfig
}

Config 配置接口

type DBConfig

type DBConfig struct {
	Username string `yaml:"username"`
	Password string `yaml:"password"`
	Host     string `yaml:"host"`
	Port     string `yaml:"port"`
	Timeout  string `yaml:"timeout"`
	DBName   string `yaml:"db_name"`
}

DBConfig 数据库相关配置

type EmptyConfig

type EmptyConfig struct {
}

func (EmptyConfig) DBConfig

func (e EmptyConfig) DBConfig() DBConfig

Jump to

Keyboard shortcuts

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