parser

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2026 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAll

func RegisterAll(reg *Registry)

Types

type DependencyParser

type DependencyParser interface {
	Detect(dir string) bool
	Parse(dir string) (*types.DependencyGraph, error)
	Ecosystem() types.Ecosystem
}

type GoModParser

type GoModParser struct{}

func NewGoModParser

func NewGoModParser() *GoModParser

func (*GoModParser) Detect

func (p *GoModParser) Detect(dir string) bool

func (*GoModParser) Ecosystem

func (p *GoModParser) Ecosystem() types.Ecosystem

func (*GoModParser) Parse

func (p *GoModParser) Parse(dir string) (*types.DependencyGraph, error)

type NodeParser

type NodeParser struct{}

func NewNodeParser

func NewNodeParser() *NodeParser

func (*NodeParser) Detect

func (p *NodeParser) Detect(dir string) bool

func (*NodeParser) Ecosystem

func (p *NodeParser) Ecosystem() types.Ecosystem

func (*NodeParser) Parse

func (p *NodeParser) Parse(dir string) (*types.DependencyGraph, error)

type PythonParser

type PythonParser struct{}

func NewPythonParser

func NewPythonParser() *PythonParser

func (*PythonParser) Detect

func (p *PythonParser) Detect(dir string) bool

func (*PythonParser) Ecosystem

func (p *PythonParser) Ecosystem() types.Ecosystem

func (*PythonParser) Parse

func (p *PythonParser) Parse(dir string) (*types.DependencyGraph, error)

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

func NewRegistry

func NewRegistry() *Registry

func (*Registry) All

func (r *Registry) All() []DependencyParser

func (*Registry) Detect

func (r *Registry) Detect(dir string) []DependencyParser

func (*Registry) Register

func (r *Registry) Register(p DependencyParser)

Jump to

Keyboard shortcuts

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