symdl

package
v0.0.0-...-4351356 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultSymbolServer = "https://msdl.microsoft.com/download/symbols"
)

Variables

This section is empty.

Functions

func CollectTargets

func CollectTargets(target string, recurse bool) ([]string, error)

func DownloadSymbol

func DownloadSymbol(ctx context.Context, client *http.Client, symbolURL, cachePath string) error

func FormatGUIDAge

func FormatGUIDAge(guid []byte, age uint32) string

func IsPE

func IsPE(path string) bool

func LocalSymbolPath

func LocalSymbolPath(cacheDir string, info PDBInfo) string

func RunChecks

func RunChecks(checker Checker, files []string, parallelism int) ([]Result, Summary)

func UpstreamSymbolURL

func UpstreamSymbolURL(base string, info PDBInfo) string

Types

type Checker

type Checker struct {
	Ctx     context.Context
	Config  Config
	Client  *http.Client
	Verbose bool
}

func (Checker) Check

func (c Checker) Check(filePath string) Result

type Config

type Config struct {
	CacheDir string
	Upstream string
}

func LoadConfig

func LoadConfig(outputDir string) (Config, error)

func ParseSymbolPath

func ParseSymbolPath(value string) (Config, bool, error)

type PDBInfo

type PDBInfo struct {
	Name    string
	GUIDAge string
}

func ReadPDBInfo

func ReadPDBInfo(filePath string) (PDBInfo, error)

type Result

type Result struct {
	Path      string
	Status    string
	Message   string
	PDBName   string
	GUIDAge   string
	CachePath string
	URL       string
}

type Summary

type Summary struct {
	Processed  int
	Cached     int
	Downloaded int
	Missing    int
	Failures   int
}

func (*Summary) Add

func (s *Summary) Add(result Result)

Jump to

Keyboard shortcuts

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