search

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Query      string
	Ecosystem  string
	Limit      int
	OnProgress func(loaded, total int)
	OnStatus   func(msg string)
}

type Result

type Result struct {
	Query     string                `json:"query"`
	Ecosystem string                `json:"ecosystem,omitempty"`
	Limit     int                   `json:"limit"`
	Total     int                   `json:"total"`
	Shown     int                   `json:"shown"`
	Packages  []source.PackageEntry `json:"packages"`
	Source    string                `json:"source,omitempty"`
}

type Service

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

func NewService

func NewService(cfg *config.Config, provider intel.Provider) *Service

func (*Service) Run

func (s *Service) Run(ctx context.Context, opts Options) (*Result, error)

Jump to

Keyboard shortcuts

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