config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	SFTPConnection SFTPConnection    `mapstructure:"sftp"`
	Flow           FlowConfiguration `mapstcuture:"flow"`
}

func ReadConfig

func ReadConfig() (Configuration, error)

type FlowConfiguration

type FlowConfiguration struct {
	Source        string `mapstrucutre:"source"`
	EnableBackups bool   `mapstrucutre:"enableBackups"`
	ClearBacklog  bool   `mapstructure:"clearBacklog"`
	Backups       string `mapstructure:"backups"`
}

type SFTPConnection

type SFTPConnection struct {
	Host       string `mapstrucutre:"host"`
	Port       int    `mapstrucutre:"port"`
	User       string `mapstrucutre:"user"`
	PrivateKey string `mapstrucutre:"privateKey"`
	RemotePath string `mapstrucutre:"remotePath"`
}

Jump to

Keyboard shortcuts

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