resolvers

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OSS

type OSS struct {
	Scorer *Score
	Lookup *URL
}

OSS fetches additional metadata for a module

func (*OSS) Resolve

func (o *OSS) Resolve(ctx context.Context, module *schema.Module) (int, string)

Resolve attempts to get additional information for a module

type Score

type Score struct {
	SearchService tracker.SearchServiceClient
	Config        *config.Config
}

Score attempts to resolve a numeric score for a module

func (*Score) Resolve

func (s *Score) Resolve(ctx context.Context, module *schema.Module) int

Resolve attempts to get additional information for a module

type URL

type URL struct {
	LibrariesIO *librariesio.Client
}

URL attempts to resolve a URL for a module

func (*URL) Resolve

func (u *URL) Resolve(ctx context.Context, module *schema.Module) string

Resolve attempts to get additional information for a module

Jump to

Keyboard shortcuts

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