depsdev

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

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 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