list

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sum

func Sum(list []os.FileInfo) ([]byte, error)

Types

type Lister

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

func New

func New(path string) (*Lister, error)

func (Lister) Files

func (l Lister) Files() []os.FileInfo

func (Lister) FilesChecksum

func (l Lister) FilesChecksum() string

func (*Lister) List

func (l *Lister) List() (*Result, error)

func (Lister) Path

func (l Lister) Path() string

func (Lister) PathChecksum

func (l Lister) PathChecksum() string

type Result

type Result struct {
	Files         int    `json:"files"`
	FilesChecksum string `json:"filesChecksum"`
	Path          string `json:"path"`
	PathChecksum  string `json:"pathChecksum"`
}

Jump to

Keyboard shortcuts

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