settings

package
v0.0.0-...-02f8797 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64EncodeString

func Base64EncodeString(data []byte) string

func DecodeString

func DecodeString(val string) (string, error)

Types

type Settings

type Settings struct {
	Host         string
	Port         string
	DownloadPath string
	Encrypted    bool
	Password     string
}

func LoadSettings

func LoadSettings() *Settings

Load settings from file.

func (Settings) CurrentSettings

func (s Settings) CurrentSettings() Settings

func (*Settings) SaveSettings

func (s *Settings) SaveSettings(settings Settings) bool

func (*Settings) SaveSettingsMemory

func (s *Settings) SaveSettingsMemory(settings *Settings)

Jump to

Keyboard shortcuts

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