index

package
v0.0.0-...-90cb927 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockLocation

type BlockLocation struct {
	BlockOffset uint32
	BlockLength uint32
}

BlockLocation describes the location (including the size) of a same-length block within an index file.

type DSC

type DSC struct {
	URL  string
	Size int64
}

DSC contains the URL to a DSC and the total file size of the DSC plus all files it references.

type Index

type Index map[string]Source

func (Index) Encode

func (index Index) Encode(w io.Writer) error

type Source

type Source struct {
	Package string
	Version version.Version
}

type URIs

type URIs map[Source]DSC

func (URIs) Encode

func (index URIs) Encode(w io.Writer) error

Jump to

Keyboard shortcuts

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