config

package
v0.0.0-...-28782ed Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddActiveDomain

func AddActiveDomain(id string, ad ActiveDomain)

func GetActiveDomains

func GetActiveDomains() map[string]ActiveDomain
func GetActiveDomainsFromLink(link string) map[string]ActiveDomain

func GetDir

func GetDir() (string, error)

func Init

func Init() (err error)

func Reload

func Reload() (err error)

func RemoveActiveDomain

func RemoveActiveDomain(id string)

Types

type ActiveDomain

type ActiveDomain struct {
	Link      string    `yaml:"link"`
	Domain    string    `yaml:"domain"`
	Host      string    `yaml:"host"`
	Port      int       `yaml:"port"`
	CreatedAt time.Time `yaml:"createdat"`
}

Jump to

Keyboard shortcuts

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