config

package
v0.0.0-...-79b3612 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const CONFIG_PATH = "/root/GolandProjects/wireguradDemo/config/server.ini"

Variables

This section is empty.

Functions

This section is empty.

Types

type CentralConfig

type CentralConfig struct {
	Port    int
	Address net.IP
}

func InitCentralConfig

func InitCentralConfig() *CentralConfig

type LocalConfig

type LocalConfig struct {
	RPCPort           int
	ID                string
	HeartbeatInterval int
	BootstrapPeers    []multiaddr.Multiaddr
}
var LConfig *LocalConfig

func InitLocalConfig

func InitLocalConfig() *LocalConfig

Jump to

Keyboard shortcuts

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