conf

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadAsMap added in v0.1.2

func LoadAsMap(filename string) (*map[string]interface{}, error)

Types

type Configuration

type Configuration struct {
	// ServiceIP 服务IP
	ServiceIP string
	// ServicePort 服务端口
	ServicePort int
	// CertPemPath TLS公钥文件
	CertPemPath string
	// CertKeyPath TLS秘钥文件
	CertKeyPath string
	// CertServerName TLS加密服务器名称
	CertServerName string
	// SwaggerDir Swagger文件目录
	SwaggerDir string
	// ServiceName 服务名称
	ServiceName string
	// TracingServerUrl 追踪服务器URL((http://ip:port/path))
	TracingServerUrl string
	// DiscoveryServerAddr 注册发现服务器地址(IP:PORT)
	DiscoveryServerAddr string
	// DiscoveryInterval 向注册发现服务器进行注册的周期("xxs")
	DiscoveryInterval string
	// DiscoveryDeregisterCriticalServiceAfter 注册服务器未接收到多长时间删除该服务信息("xxs")
	DiscoveryDeregisterCriticalServiceAfter string
}

Configuration 配置信息

func (*Configuration) Load

func (c *Configuration) Load(filename string) error

func (*Configuration) Save

func (c *Configuration) Save(filename string) error

Jump to

Keyboard shortcuts

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