pkgsitedb

package
v0.0.0-...-210767f Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(ctx context.Context, cfg Config) (_ *sql.DB, err error)

Open creates a connection to the pkgsite database.

Types

type Config

type Config struct {
	User           string
	PasswordSecret string
	Password       string
	Host           string
	Port           string
	DBName         string
}

type Module

type Module struct {
	Path     string
	Packages []*Package
}

func QueryModule

func QueryModule(ctx context.Context, db *sql.DB, modulePath string) (*Module, error)

type Package

type Package struct {
	Path         string
	Version      string
	NumImporters int
}

Jump to

Keyboard shortcuts

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