config

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const FallbackNetworkConfig = `` /* 11731-byte string literal not displayed */

Variables

This section is empty.

Functions

func SaveConfig

func SaveConfig(cfg *Config, path string) error

Types

type Config

type Config struct {
	ADNLKey         ed25519.PrivateKey
	ProviderKey     ed25519.PrivateKey
	ListenAddr      string
	ExternalIP      string
	MinRatePerMBDay string
	MinSpan         uint32
	MaxSpan         uint32
	MaxBagSizeBytes uint64
	Storages        []StorageConfig
}

func LoadConfig

func LoadConfig(path string) (*Config, error)

type StorageConfig

type StorageConfig struct {
	BaseURL                 string
	Login                   string
	Password                string
	SpaceToProvideMegabytes uint64
}

Jump to

Keyboard shortcuts

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