config

package
v3.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config = Configure{
	Oem: OEM{
		Title:     "物联大师",
		Logo:      "",
		Company:   "无锡真格智能科技有限公司",
		Copyright: "©2023",
	},
	Web:      web.Default(),
	Log:      log.Default(),
	Mqtt:     mqtt.Default(),
	Broker:   broker2.Default(),
	Database: db.Default(),
}

Config 全局配置

Functions

func Load

func Load() error

Load 加载

func Store

func Store() error

Types

type Configure

type Configure struct {
	Oem      OEM             `json:"oem"`
	Web      web.Options     `json:"web"`
	Broker   broker2.Options `json:"broker"`
	Log      log.Options     `json:"log"`
	Mqtt     mqtt.Options    `json:"mqtt"`
	Database db.Options      `json:"database"`
}

Configure 配置

type OEM

type OEM struct {
	Title     string `yaml:"title,omitempty" json:"title,omitempty"`
	Company   string `yaml:"company,omitempty" json:"company,omitempty"`
	Copyright string `yaml:"copyright,omitempty" json:"copyright,omitempty"`
}

Jump to

Keyboard shortcuts

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