config

package
v0.0.0-...-61b8474 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	EndpointPort uint   `yaml:"endpointPort"`
	SignalServer string `yaml:"signalServer"`
	Server       string `yaml:"server"`
	Addr         string `yaml:"addr"`
	Hostname     string `yaml:"hostname"`

	StunServer []string `yaml:"stunServer"`

	Subscriptions []Subscriptions `yaml:"subscriptions"`

	Logging struct {
		Level string `yaml:"level"`
	} `yaml:"logging"`

	Plugins []Plugin `yaml:"plugins"`
}

func Load

func Load(filename string) (*Config, error)

type Interface

type Interface struct {
	Iface     string   `yaml:"iface"`
	Publickey string   `yaml:"publickey"`
	Port      int      `yaml:"port"`
	Concern   []string `yaml:"concern"`
}

type Plugin

type Plugin struct {
	Name    string                 `yaml:"name"`
	Address string                 `yaml:"address"`
	Spec    map[string]interface{} `yaml:"spec"`
}

func (*Plugin) LoadPluginConfig

func (p *Plugin) LoadPluginConfig(target interface{}) error

LoadPluginConfig loads the specific configuration for a plugin

type Subscriptions

type Subscriptions struct {
	Topic string `yaml:"topic"`
}

type WgSpec

type WgSpec struct {
	Iface      string      `yaml:"iface"`
	Interfaces []Interface `yaml:"interfaces"`
}

Jump to

Keyboard shortcuts

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