conf

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	SourceUrls  []string `yaml:"sourceUrls"`
	HostFilters []string `yaml:"hostFilters"`
	ReqTimeout  int      `yaml:"reqTimeout"`
	MaxAvgRtt   int      `yaml:"maxAvgRtt"`
	PingCount   int      `yaml:"pingCount"`
	WorkerNum   int      `yaml:"workerNum"`
}

type GhConfig

type GhConfig struct {
	Conf *Conf
	// contains filtered or unexported fields
}

func (*GhConfig) AddUrls

func (that *GhConfig) AddUrls(urls ...string)

func (*GhConfig) ConfigPath

func (that *GhConfig) ConfigPath() string

func (*GhConfig) Create

func (that *GhConfig) Create()

func (*GhConfig) Load

func (that *GhConfig) Load()

func (*GhConfig) Path

func (that *GhConfig) Path() (p string, err error)

func (*GhConfig) RemoveUrls

func (that *GhConfig) RemoveUrls(idx int)

func (*GhConfig) Set

func (that *GhConfig) Set(key, value string)

func (*GhConfig) ShowConfig

func (that *GhConfig) ShowConfig()

Jump to

Keyboard shortcuts

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