depsdev

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorNoResults = errors.New("no results returned")

Functions

func NewDependents

func NewDependents(ctx context.Context, client *bigquery.Client, logger *zap.Logger, datasetName string, datasetTTL time.Duration) (*dependents, error)

func NewSource

func NewSource(ctx context.Context, logger *zap.Logger, projectID, datasetName string, datasetTTL time.Duration) (signal.Source, error)

NewSource creates a new Source for gathering data from deps.dev.

TODO add options to configure the dataset:

  • force dataset re-creation (-update-strategy = always,stale,weekly,monthly,never)
  • force dataset destruction (-depsdev-destroy-data)

Types

type Dataset

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

type Table

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

Jump to

Keyboard shortcuts

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