depsdev

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 12 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

View Source
const DepsdevAPI = "api.deps.dev:443"

DepsdevAPI is the URL to the deps.dev API. It is documented at docs.deps.dev/api.

Variables

System maps from a lockfile system to the depsdev API system.

Functions

func MakeVersionRequests

func MakeVersionRequests(queries []*depsdevpb.GetVersionRequest) ([][]models.License, error)

MakeVersionRequests wraps MakeVersionRequestsWithContext using context.Background.

func MakeVersionRequestsWithContext

func MakeVersionRequestsWithContext(ctx context.Context, queries []*depsdevpb.GetVersionRequest) ([][]models.License, error)

MakeVersionRequestsWithContext calls the deps.dev GetVersion gRPC API endpoint for each query. It makes these requests concurrently, sharing the single HTTP/2 connection. The order in which the requests are specified should correspond to the order of licenses returned by this function.

func VersionQuery

func VersionQuery(system depsdevpb.System, name string, version string) *depsdevpb.GetVersionRequest

VersionQuery constructs a GetVersion request from the arguments.

Types

This section is empty.

Jump to

Keyboard shortcuts

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