modulegraph

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. * * This product includes software developed at Datadog (https://www.datadoghq.com) Copyright 2024 Datadog, Inc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct {
	RootPaths      []string
	DiscoveryPaths []string
	Resolver       resolver.Resolver
	MaxDepth       int
	FS             vfs.FS
}

type ResolvedModule

type ResolvedModule struct {
	CallerRoot      string
	Source          string
	Version         string
	Name            string
	LocalPath       string
	CanonicalSource string
}

type Result

type Result struct {
	ScanPaths      []string
	Modules        []ResolvedModule
	SourceMappings map[string]string
	Cleanup        func()
}

func Resolve

func Resolve(ctx context.Context, request *Request) Result

Jump to

Keyboard shortcuts

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