utils

package
v0.0.0-...-454d577 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func ArrayContains

func ArrayContains(arr []string, str string) bool

func FileExists

func FileExists(path string) bool

func GetHomeDir

func GetHomeDir() string

func ListFiles

func ListFiles(path string) []string

func LoadConfig

func LoadConfig(path string)

Types

type ConfigType

type ConfigType struct {
	Port     int    `json:"port"`
	CDNpath  string `json:"root"`
	BindAddr string `json:"bindAddr"`
	Icon     string `json:"hosticon"`
	Uuid     string `json:"uuid"`
	Locked   bool
	Name     string `json:"vendorName"`
	Access   string `json:"htpasswd"`
	Pem      string `json:"pemTLS"`
	Key      string `json:"keyTLS"`
}
var Config ConfigType

Jump to

Keyboard shortcuts

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