configuration

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigStruct

type ConfigStruct struct {
	Version        string   `json:"version"`
	Identity       Identity `json:"identity"`
	Ip             string   `json:"ip"`
	LocalServerIp  string   `json:"local_server_ip"`
	RemoteServerIp string   `json:"remote_server_ip"`
	Id             string   `json:"id"`
	Name           string   `json:"name"`
	Include        []string `json:"include"`
	Exclude        []string `json:"exclude"`
	UpdateRate     int      `json:"update_rate"` // number of seconds between updates
	FileTreeFile   string   `json:"file_tree_file"`
	DataDir        string   `json:"data_dir"`
}
var Config *ConfigStruct = newConfig()

func (*ConfigStruct) Write

func (cfg *ConfigStruct) Write() (err error)

type Identity

type Identity string
const (
	IdentityClient Identity = "client"
	IdentityServer Identity = "server"
)

Jump to

Keyboard shortcuts

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