languages

package
v0.1.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2025 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DotNetDetector

type DotNetDetector struct{}

DotNetDetector detects .NET/C# projects and OpenTelemetry usage

func NewDotNetDetector

func NewDotNetDetector() *DotNetDetector

NewDotNetDetector creates a new .NET language detector

func (*DotNetDetector) GetAllPackages

func (d *DotNetDetector) GetAllPackages(ctx context.Context, rootPath string) ([]domain.Package, error)

GetAllPackages finds all packages/dependencies used in the project

func (*DotNetDetector) GetFilePatterns

func (d *DotNetDetector) GetFilePatterns() []string

GetFilePatterns returns patterns for .NET projects

func (*DotNetDetector) GetOTelLibraries

func (d *DotNetDetector) GetOTelLibraries(ctx context.Context, rootPath string) ([]domain.Library, error)

GetOTelLibraries finds OpenTelemetry libraries in .NET projects

func (*DotNetDetector) Name

func (d *DotNetDetector) Name() string

Name returns the language name key used by the analyzer We align with enry's C# output and overall tool usage by handling "c#" as the map key.

type GoDetector

type GoDetector struct{}

GoDetector detects Go projects and OpenTelemetry usage

func NewGoDetector

func NewGoDetector() *GoDetector

NewGoDetector creates a new Go language detector

func (*GoDetector) GetAllPackages

func (g *GoDetector) GetAllPackages(ctx context.Context, rootPath string) ([]domain.Package, error)

GetAllPackages finds all packages/dependencies used in the Go project

func (*GoDetector) GetFilePatterns

func (g *GoDetector) GetFilePatterns() []string

GetFilePatterns returns patterns for Go files

func (*GoDetector) GetOTelLibraries

func (g *GoDetector) GetOTelLibraries(ctx context.Context, rootPath string) ([]domain.Library, error)

GetOTelLibraries finds OpenTelemetry libraries in Go projects

func (*GoDetector) Name

func (g *GoDetector) Name() string

Name returns the language name

type JavaDetector

type JavaDetector struct{}

JavaDetector detects Java projects and OpenTelemetry usage

func NewJavaDetector

func NewJavaDetector() *JavaDetector

NewJavaDetector creates a new Java language detector

func (*JavaDetector) GetAllPackages

func (j *JavaDetector) GetAllPackages(ctx context.Context, rootPath string) ([]domain.Package, error)

GetAllPackages finds all packages/dependencies used in the Java project

func (*JavaDetector) GetFilePatterns

func (j *JavaDetector) GetFilePatterns() []string

GetFilePatterns returns patterns for Java files

func (*JavaDetector) GetOTelLibraries

func (j *JavaDetector) GetOTelLibraries(ctx context.Context, rootPath string) ([]domain.Library, error)

GetOTelLibraries finds OpenTelemetry libraries in Java projects (Maven/Gradle and imports)

func (*JavaDetector) Name

func (j *JavaDetector) Name() string

Name returns the language name

type JavaScriptDetector

type JavaScriptDetector struct{}

JavaScriptDetector detects JavaScript projects and OpenTelemetry usage

func NewJavaScriptDetector

func NewJavaScriptDetector() *JavaScriptDetector

NewJavaScriptDetector creates a new JavaScript language detector

func (*JavaScriptDetector) GetAllPackages

func (j *JavaScriptDetector) GetAllPackages(ctx context.Context, rootPath string) ([]domain.Package, error)

GetAllPackages finds all packages/dependencies used in the project

func (*JavaScriptDetector) GetFilePatterns

func (j *JavaScriptDetector) GetFilePatterns() []string

GetFilePatterns returns patterns for JavaScript files

func (*JavaScriptDetector) GetOTelLibraries

func (j *JavaScriptDetector) GetOTelLibraries(ctx context.Context, rootPath string) ([]domain.Library, error)

GetOTelLibraries finds OpenTelemetry libraries in JavaScript projects

func (*JavaScriptDetector) Name

func (j *JavaScriptDetector) Name() string

Name returns the language name

type PHPDetector

type PHPDetector struct{}

PHPDetector detects PHP projects and OpenTelemetry usage

func NewPHPDetector

func NewPHPDetector() *PHPDetector

NewPHPDetector creates a new PHP language detector

func (*PHPDetector) GetAllPackages

func (p *PHPDetector) GetAllPackages(ctx context.Context, rootPath string) ([]domain.Package, error)

GetAllPackages finds all packages/dependencies used in the PHP project

func (*PHPDetector) GetFilePatterns

func (p *PHPDetector) GetFilePatterns() []string

GetFilePatterns returns patterns for PHP files

func (*PHPDetector) GetOTelLibraries

func (p *PHPDetector) GetOTelLibraries(ctx context.Context, rootPath string) ([]domain.Library, error)

GetOTelLibraries finds OpenTelemetry libraries in PHP projects

func (*PHPDetector) Name

func (p *PHPDetector) Name() string

Name returns the language name

type PythonDetector

type PythonDetector struct{}

PythonDetector detects Python projects and OpenTelemetry usage

func NewPythonDetector

func NewPythonDetector() *PythonDetector

NewPythonDetector creates a new Python language detector

func (*PythonDetector) GetAllPackages

func (p *PythonDetector) GetAllPackages(ctx context.Context, rootPath string) ([]domain.Package, error)

GetAllPackages finds all packages/dependencies used in the Python project

func (*PythonDetector) GetFilePatterns

func (p *PythonDetector) GetFilePatterns() []string

GetFilePatterns returns patterns for Python files

func (*PythonDetector) GetOTelLibraries

func (p *PythonDetector) GetOTelLibraries(ctx context.Context, rootPath string) ([]domain.Library, error)

GetOTelLibraries finds OpenTelemetry libraries in Python projects

func (*PythonDetector) Name

func (p *PythonDetector) Name() string

Name returns the language name

type RubyDetector

type RubyDetector struct{}

RubyDetector detects Ruby projects and OpenTelemetry usage

func NewRubyDetector

func NewRubyDetector() *RubyDetector

NewRubyDetector creates a new Ruby language detector

func (*RubyDetector) GetAllPackages

func (r *RubyDetector) GetAllPackages(ctx context.Context, rootPath string) ([]domain.Package, error)

GetAllPackages finds all packages/dependencies used in the Ruby project

func (*RubyDetector) GetFilePatterns

func (r *RubyDetector) GetFilePatterns() []string

GetFilePatterns returns file patterns this detector should scan

func (*RubyDetector) GetOTelLibraries

func (r *RubyDetector) GetOTelLibraries(ctx context.Context, rootPath string) ([]domain.Library, error)

GetOTelLibraries finds OpenTelemetry libraries in Ruby projects

func (*RubyDetector) Name

func (r *RubyDetector) Name() string

Name returns the language name

Jump to

Keyboard shortcuts

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