registrytest

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

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

func New

func New(ar *txtar.Archive) *Registry

New starts a registry instance that serves modules found inside the _registry path inside ar. The protocol that it serves is that of the Go proxy, documented here: https://go.dev/ref/mod#goproxy-protocol

Each module should be inside a directory named path_vers, where slashes in path have been replaced with underscores and should contain a cue.mod/module.cue file holding the module info.

The Registry should be closed after use.

func (*Registry) Close

func (r *Registry) Close()

func (*Registry) URL

func (r *Registry) URL() string

URL returns the base URL for the registry.

Jump to

Keyboard shortcuts

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