config

package
v1.3.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentConfig

type AgentConfig struct {
	Name    string   `json:"name,omitempty" yaml:"name"`
	Tunnels []Tunnel `json:"tunnels,omitempty" yaml:"tunnels"`
}

type Config

type Config struct {
	ServerIP                string        `json:"serverIP,omitempty" yaml:"serverIP"`
	DefaultMQPort           int           `json:"defaultMQPort,omitempty" yaml:"defaultMQPort"`
	DefaultStaticServerPort int           `json:"defaultStaticServerPort,omitempty" yaml:"defaultStaticServerPort"`
	Config                  []AgentConfig `json:"config,omitempty" yaml:"config"`
}

func New

func New() *Config

func TryLoadFromDisk

func TryLoadFromDisk() (*Config, error)

type Tunnel

type Tunnel struct {
	LocalPort     int    `json:"localPort,omitempty" yaml:"localPort"`
	RemoteAddress string `json:"remoteAddress,omitempty" yaml:"remoteAddress"`
}

Jump to

Keyboard shortcuts

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