depsdev

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 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 wraps MakeVersionRequestsWithContext using context.Background.

func MakeVersionRequestsWithContext added in v1.7.1

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