conf

package
v0.0.0-...-6a6dcdd Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 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 ModelConf

type ModelConf struct {
	Name string
	Http struct {
		Host       string //服务器IP,一般为内网IP,无则会自动获取IPv4地址
		Port       string //http端口
		Root       string //接口根路由,建议:/sysmain
		Secret     string //如果配置了秘钥,所有接口都需要加密
		ClientRoot string //sysmain调用各系统的根路由,建议:/sysmain
	}
	JwtSecret string //登录加密秘钥

	Sdp struct {
		PingSecond int //ping间隔(秒),默认5秒,最小2秒,超过1个间隔周期+3秒未发送ping则会移除该实例
	}

	Mq struct{}

	Redis struct {
		Host string
		Pass string
	}

	MySql struct {
		Host string
		Pass string
		User string
		Db   string
	}

	Aliyun struct {
		Region       string
		AccessKey    string
		AccessSecret string
	}

	Feishu struct {
		Webhookurl string
		Secret     string
	}
}
var Conf *ModelConf

func Init

func Init() *ModelConf

Jump to

Keyboard shortcuts

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