config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Configuration = Config{}

Functions

This section is empty.

Types

type Config

type Config struct {
	HomeDir   string `yaml:"-"`
	ConfigDir string `yaml:"-"`
	Scheme    string `yaml:"scheme"`
	Host      string `yaml:"host"`
	Port      int64  `yaml:"port"`
	Password  string `yaml:"password"`
}

func (*Config) ConfigExists

func (c *Config) ConfigExists() bool

func (*Config) InitConfig

func (c *Config) InitConfig() error

func (*Config) SetConfig

func (c *Config) SetConfig(scheme string, host string, port int64, password string) error

func (*Config) UpdatePassword

func (c *Config) UpdatePassword(password string) error

func (*Config) ValidateConfig

func (c *Config) ValidateConfig() error

Jump to

Keyboard shortcuts

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