config

package
v0.0.0-...-ee45651 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Init 初始化config模块 为了适配开发环境和发布环境,配置文件可以放在两个位置, 分别是 .../stroxy/server/resources/config.json .../stroxy/resources/config.json

Types

type ConfigGroup

type ConfigGroup struct {
	ServerPort        int
	ServerNodes       map[string]ServerNode
	DefaultServerNode string //默认选中的节点
	CurNode           ServerNode
}

解析和处理配置文件

func CONF

func CONF() *ConfigGroup

读取当前配置

type ServerNode

type ServerNode struct {
	TLS           bool
	KeyFile       string
	PublicCrtFile string
	MaxProcess    int
}

Jump to

Keyboard shortcuts

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