wdc

package
v0.0.0-...-599c7fa Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const AppVersion = "0.7.1"

Variables

View Source
var SaveReport, Verbose, Debug, Offline, Plain bool
View Source
var WdcConfig = Config{
	ID:   "WDC",
	URL:  "https://warp-diag-checker.pages.dev/wdc-config.yaml",
	Path: "./wdc-config.yaml",
	File: "wdc-config.yaml",
}

Functions

func CheckForAppUpdate

func CheckForAppUpdate()

func GetOrLoadConfig

func GetOrLoadConfig(c Config)

func LoadConfig

func LoadConfig(c Config)

func LocalConfig

func LocalConfig(c Config)

func RemoteConfig

func RemoteConfig(c Config) bool

func SaveConfig

func SaveConfig(c Config) error

Types

type Config

type Config struct {
	ID   string
	URL  string
	Path string
	File string
}

type WDCYaml

type WDCYaml struct {
	WDCReleaseVersion  string   `yaml:"wdc_latest_version"`
	WDDReleaseVersion  string   `yaml:"wdd_latest_version"`
	ConfigVersion      string   `yaml:"config_version"`
	BadVersions        []string `yaml:"bad_versions"`
	LogPatternsByIssue []struct {
		SearchFile string `yaml:"search_file"`
		Issue      map[string]struct {
			SearchTerms []string `yaml:"search_term"`
		} `yaml:"issue_type"`
		ReplyType map[string]struct {
			Message string `yaml:"message"`
		} `yaml:"reply_type"`
	} `yaml:"log_patterns_by_issue"`
	ReplyByIssueType map[string]struct {
		Message string `yaml:"message"`
	} `yaml:"reply_by_issue_type"`
}
var WdcConf WDCYaml

Jump to

Keyboard shortcuts

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