filelist

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2020 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dir

type Dir struct {
	Name       string `xml:"Name,attr"`
	Incomplete int    `xml:"Incomplete,attr"`
	Dirs       []Dir  `xml:"Directory"`
	Files      []File `xml:"File"`
}

type File

type File struct {
	Name string     `xml:"Name,attr"`
	Size int64      `xml:"Size,attr"`
	TTH  tiger.Hash `xml:"TTH,attr"`
}

type FileList

type FileList struct {
	Version   int       `xml:"Version,attr"`
	CID       types.CID `xml:"CID,attr"`
	Base      string    `xml:"Base,attr"`
	Generator string    `xml:"Generator,attr"`
	Dirs      []Dir     `xml:"Directory"`
	Files     []File    `xml:"File"`
}

func Decode

func Decode(r io.Reader) (*FileList, error)

func DecodeBZIP

func DecodeBZIP(r io.Reader) (*FileList, error)

Jump to

Keyboard shortcuts

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