handler

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 13 Imported by: ? 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 GoMod

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

func NewGoMod

func NewGoMod(gcli *github.Client, wc *component.WarnCondition) *GoMod

func (*GoMod) Handle

func (h *GoMod) Handle(ctx context.Context, path string)

func (*GoMod) LookUp

func (h *GoMod) LookUp(path string) ([]component.Component, error)

type Handler

type Handler interface {
	Handle(ctx context.Context, path string)
	LookUp(path string) ([]component.Component, error)
}

type PackageJSON

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

func NewPackageJSON

func NewPackageJSON(gcli *github.Client, wc *component.WarnCondition) *PackageJSON

func (*PackageJSON) Handle

func (h *PackageJSON) Handle(ctx context.Context, path string)

func (*PackageJSON) LookUp

func (h *PackageJSON) LookUp(path string) ([]component.Component, error)

Jump to

Keyboard shortcuts

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