pkgsitedb

package
v0.0.0-...-a9204e2 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: BSD-3-Clause, CC-BY-4.0 Imports: 7 Imported by: 0

Documentation

Overview

Package pkgsitedb provides functionality for connecting to the pkgsite database.

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