apriori

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: May 10, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPlugin

func NewPlugin(path string) (source.Plugin, error)

NewPlugin "apriori" - "cache" is boring: some file may contains information <mod path> → <version> → (<rev info>, <go.mod path>, <zip archive path>) and what it hidden there is enough for a functional go proxy serving exactly these modules at exactly these versions

Types

type Mapping

type Mapping map[string]map[string]ModuleInfo

Mapping maps path → (version → module info)

type ModuleInfo

type ModuleInfo struct {
	RevInfo     source.RevInfo
	GoModPath   string
	ArchivePath string
}

ModuleInfo information needed for go modules proxy protocol

Jump to

Keyboard shortcuts

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