package
0.0.0-20240930212407-d384f87bdcd5
Repository: https://github.com/listendev/pkg.git
Documentation: pkg.go.dev

# README

Analysis Request

This package provides a way to create the request to analyze a package.

Installation

go get github.com/listendev/pkg/analysisrequest

Usage

Unmarshal a request from JSON

package main

import (
	"github.com/davecgh/go-spew/spew"
	"github.com/listendev/pkg/analysisrequest"
	"github.com/listendev/pkg/npm"
	"github.com/listendev/pkg/observability"
)

func main() {
	arJSON := `{"type": "urn:scheduler:dynamic!npm,install.json", "snowflake_id": "1524854487523524608", "name": "chalk"}`
	// you can use the observability package to create a context with tracing and logging here
	ctx := observability.NewNopContext()
	arbuilder, _ := analysisrequest.NewBuilder(ctx)
	regClient, _ := npm.NewNPMRegistryClient(npm.NPMRegistryClientConfig{})
	arbuilder.WithNPMRegistryClient(regClient)
	ar, _ := arbuilder.FromJSON([]byte(arJSON))
	spew.Dump(ar.(analysisrequest.NPM))
}

# Packages

No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
nolint:revive // we are doing this on purpose (for now).
nolint:revive // we are doing this on purpose (for now).
No description provided by the author
NewNPM creates an AnalysisRequest for the NPM ecosystem.
NewPyPi creates an AnalysisRequest for the PyPi ecosystem.
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Those are the constants representing the analysis request types.
Those are the constants representing the analysis request types.
Those are the constants representing the analysis request types.
Those are the constants representing the analysis request types.
Those are the constants representing the analysis request types.
Those are the constants representing the analysis request types.
Those are the constants representing the analysis request types.
Those are the constants representing the analysis request types.
Those are the constants representing the analysis request types.
18 // Do not forget to specify the type Type when using iota to reserve space for previous types.
Those are the constants representing the analysis request types.
Those are the constants representing the analysis request types.
Those are the constants representing the analysis request types.
Those are the constants representing the analysis request types.
Those are the constants representing the analysis request types.
1008.
Those are the constants representing the analysis request types.
Those are the constants representing the analysis request types.
1018.
Those are the constants representing the analysis request types.
Those are the constants representing the analysis request types.
Those are the constants representing the analysis request types.
1005.
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
NPMFillError instances.
PyPiFillError instances.
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author