settings

package
v0.0.0-...-ec09336 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DirPermissions  = 0755
	FilePermissions = 0644
	CrawlingDir     = "crawled"
	RootFilename    = "_index"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Settings

type Settings interface {
	URL() *url.URL
	OutputDir() string
	WorkersCnt() uint8
	Logger() *zerolog.Logger
	HTTPTimeout() uint16
}

func Get

func Get() Settings

func Save

func Save(urlObject *url.URL, outputDir string, workersCnt uint8, logger *zerolog.Logger, httpTimeout uint16) Settings

Save saves settings to singleton instance; also it kinda works as a getter, if someone tries to call it again.

Jump to

Keyboard shortcuts

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