config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(confStr string) (err error)

Types

type Config

type Config struct {
	ID       string   `json:"id"`
	PSK      string   `json:"psk"`
	Server   string   `json:"server,omitempty"`
	UseIPv6  bool     `json:"ipv6,omitempty"`
	Ports    []int    `json:"ports,omitempty"`
	UPnP     bool     `json:"upnp,omitempty"`
	Strategy []string `json:"strategy,omitempty"`
}

Config defines the user-specific information for the transfer.

func MustGetConfig

func MustGetConfig() *Config

func (*Config) ApplyDefault

func (conf *Config) ApplyDefault()

func (*Config) Export

func (conf *Config) Export() *Config

Export returns a Config with only the fields that are common to all devices of a user.

Jump to

Keyboard shortcuts

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