config

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultDNSValidationTaskConfig = TaskConfigDNSValidation{
	TaskName:     "dns:validate",
	DNSTXTRecord: "routehub_domainkey",
	TaskQueue:    "dns-validation",
	DNSServer:    "1.1.1.1:53",
	TaskPriority: 4,
}
View Source
var DefaultSiteValidationTaskConfig = TaskConfigSiteValidation{
	TaskName:     "site:validate",
	TaskQueue:    "site-validation",
	TaskPriority: 3,
}
View Source
var DefaultURLValidationTaskConfig = TaskConfigURLValidation{
	TaskName:     "url:validate",
	TaskQueue:    "url-validation",
	TaskPriority: 3,
}

Functions

This section is empty.

Types

type Settings

type Settings struct {
	MaxRetry        int
	Timeout         time.Duration
	DeadlineTimeout time.Duration
	Queue           string
	QueuePriority   int
	Retention       time.Duration
}

func DefaultSettings

func DefaultSettings(Queue string, QueuePriority int) Settings

func (Settings) GetPriority

func (s Settings) GetPriority() map[string]int

type TaskConfigDNSValidation

type TaskConfigDNSValidation struct {
	TaskName     string `koanf:"task_name"`
	DNSTXTRecord string `koanf:"dns_txt_record"`
	TaskQueue    string `koanf:"task_queue"`
	TaskPriority int    `koanf:"task_priority"`
	DNSServer    string `koanf:"dns_server"`
}

type TaskConfigSiteValidation

type TaskConfigSiteValidation struct {
	TaskName     string `koanf:"task_name"`
	TaskQueue    string `koanf:"task_queue"`
	TaskPriority int    `koanf:"task_priority"`
}

type TaskConfigURLValidation

type TaskConfigURLValidation struct {
	TaskName     string `koanf:"task_name"`
	TaskQueue    string `koanf:"task_queue"`
	TaskPriority int    `koanf:"task_priority"`
}

type TaskConfigs

type TaskConfigs struct {
	DNSValidation  TaskConfigDNSValidation  `koanf:"dns_validation_task"`
	URLValidation  TaskConfigURLValidation  `koanf:"url_validation_task"`
	SiteValidation TaskConfigSiteValidation `koanf:"site_validation_task"`
}

Jump to

Keyboard shortcuts

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