config

package
v0.0.0-...-c39ee49 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 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 DownloaderConfig

type DownloaderConfig struct {
	Name         string
	Source       string
	SourcePath   string
	TargetPath   string
	Enabled      bool
	Worker       int
	MaxTimeout   int
	Throughput   int
	SourceServer ServerConfig
}

type GeneralConfig

type GeneralConfig struct {
	TempFolder string
}

type MasterConfig

type MasterConfig struct {
	Servers     []ServerConfig
	Downloaders []DownloaderConfig
	Uploaders   []UploaderConfig
	Syncers     []SyncerConfig
	Streamers   []StreamerConfig
	General     GeneralConfig
}

func ReadConfig

func ReadConfig(path_to_config string) (MasterConfig, error)

type ServerConfig

type ServerConfig struct {
	Name     string
	Ip       string
	Port     int
	User     string
	Password string
	KeyFile  string
	CertFile string
}

type StreamerConfig

type StreamerConfig struct {
	Name          string
	Source        string
	SourcePath    string
	Target        string
	TargetPath    string
	Enabled       bool
	SleepInterval int
	Worker        int
	SourceServer  ServerConfig
	TargetServer  ServerConfig
}

type SyncerConfig

type SyncerConfig struct {
	Name          string
	Server        string
	ServerPath    string
	LocalPath     string
	Mode          string
	Enabled       bool
	SleepInterval int
	Worker        int
	MaxTimeout    int
	Throughput    int
	SyncServer    ServerConfig
}

type UploaderConfig

type UploaderConfig struct {
	Name         string
	Target       string
	SourcePath   string
	TargetPath   string
	Enabled      bool
	Worker       int
	MaxTimeout   int
	Throughput   int
	TargetServer ServerConfig
}

Jump to

Keyboard shortcuts

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