guacanalytics

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SearchDependenciesFromStartNode

func SearchDependenciesFromStartNode(ctx context.Context, gqlClient graphql.Client, startID string, stopID *string, maxDepth int) (map[string]DfsNode, error)

TODO: make more robust using predicates

Types

type DfsNode

type DfsNode struct {
	Expanded bool   // true once all node neighbors are added to queue
	Parent   string // TODO: turn parent into a list in cause discovered twice from two different nodes
	Depth    int
	Type     NodeType
	// contains filtered or unexported fields
}

type NodeType

type NodeType int
const (
	PackageName NodeType = iota
	PackageVersion
	SourceName
	Artifact
)

Jump to

Keyboard shortcuts

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