repo

package
v0.0.0-...-93c3c4a Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 License: Unlicense Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Get(ctx context.Context, url string) (resp []byte, err error)
}

type Depsdev

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

func NewDepsdev

func NewDepsdev(client Client, limit int) *Depsdev

func (*Depsdev) Lookup

func (d *Depsdev) Lookup(ctx context.Context, pkgPath string) (_ Pkg, e error)

func (*Depsdev) Search

func (d *Depsdev) Search(ctx context.Context, q string) (_ []Pkg, e error)

type Local

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

func NewLocal

func NewLocal(dir string) *Local

func (*Local) Lookup

func (l *Local) Lookup(ctx context.Context, pkgPath string) (_ Pkg, e error)

func (*Local) Search

func (l *Local) Search(ctx context.Context, q string) (_ []Pkg, e error)

type Pkg

type Pkg struct {
	Path, Version string
}

func (Pkg) Latest

func (pkg Pkg) Latest() Pkg

func (Pkg) Name

func (pkg Pkg) Name() string

func (Pkg) String

func (pkg Pkg) String() string

type Pkgsite

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

func NewPkgsite

func NewPkgsite(client Client, baseURL string, limit int) *Pkgsite

func (*Pkgsite) Lookup

func (p *Pkgsite) Lookup(ctx context.Context, pkgPath string) (_ Pkg, e error)

func (*Pkgsite) Search

func (p *Pkgsite) Search(ctx context.Context, q string) (_ []Pkg, e error)

Jump to

Keyboard shortcuts

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