utils

package
v0.0.0-...-2b5ea0c Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvAddress = "FTP_ADDR"
	EnvUser    = "FTP_USER"
	EnvPass    = "FTP_PASS"
)

Variables

This section is empty.

Functions

func ExtractRemoteAddress

func ExtractRemoteAddress(value string) string

Types

type Config

type Config struct {
	Address  string
	User     string
	Password string
}

func LoadConfig

func LoadConfig() (*Config, error)

func (*Config) Validate

func (c *Config) Validate() error

Jump to

Keyboard shortcuts

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