config

package
v0.0.0-...-16e46fc Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 3 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 {
	Root string `json:"Root" gorm:"column:Root"`
	Log  *Log   `json:"Log" gorm:"column:Log"`
	DB   *DB    `json:"DB" gorm:"column:DB"`
	Port int    `json:"Port" gorm:"column:Port"`
}

func LoadConfig

func LoadConfig(path string) Config

type DB

type DB struct {
	User     string `json:"User" gorm:"column:User"`
	Port     int    `json:"Port" gorm:"column:Port"`
	DbName   string `json:"DbName" gorm:"column:DbName"`
	Addr     string `json:"Addr" gorm:"column:Addr"`
	Password string `json:"Password" gorm:"column:Password"`
}

type Log

type Log struct {
	Path  string `json:"Path" gorm:"column:Path"`
	Delay int    `json:"Delay" gorm:"column:Delay"`
}

Jump to

Keyboard shortcuts

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