config

package
v1.4.11 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *gorm.DB
View Source
var Dbname string
View Source
var DeviceName string
View Source
var Download string
View Source
var Loader string
View Source
var MainOutRouter string

10.0.4.10:8426 124.220.233.230:8426

View Source
var MainRouter string
View Source
var Raster string
View Source
var Tiles3d string

Functions

func GetDB added in v1.4.11

func GetDB() *gorm.DB

GetDB 获取数据库实例

func InitDatabase added in v1.4.11

func InitDatabase() error

InitDatabase 初始化SQLite数据库

Types

type Config

type Config struct {
	XMLName       xml.Name `xml:"config"`
	MainRouter    string   `xml:"MainRouter"`
	MainOutRouter string   `xml:"MainOutRouter"`
	Dbname        string   `xml:"dbname"`
	Host          string   `xml:"host"`
	Port          string   `xml:"port"`
	Username      string   `xml:"user"`
	Password      string   `xml:"password"`
	Loader        string   `xml:"loader"`
	Raster        string   `xml:"raster"`
	Dem           string   `xml:"dem"`
	RootPath      string   `xml:"RootPath"`
	Tiles3d       string   `xml:"tiles3d"`
	DeviceName    string   `xml:"DeviceName"`
	Download      string   `xml:"download"`
}
var MainConfig Config

Jump to

Keyboard shortcuts

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