seal

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2014 License: LGPL-3.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

View Source
const (
	IndexBaseName = "godi"
	Name          = "seal"
)

Variables

This section is empty.

Functions

func SubCommands

func SubCommands() []gcli.Command

return subcommands for our particular area of algorithms

Types

type SealCommand

type SealCommand struct {

	// One or more trees to seal
	// Exported just for test-cases - too lazy to make it a read-only copy through accessor
	Trees []string
	// contains filtered or unexported fields
}

A type representing all arguments required to drive a Seal operation

func NewCommand

func NewCommand(trees []string, nReaders int) (c SealCommand, err error)

NewCommand returns an initialized seal command

func (*SealCommand) Aggregate

func (s *SealCommand) Aggregate(results <-chan godi.Result, done <-chan bool) <-chan godi.Result

func (*SealCommand) Gather

func (s *SealCommand) Gather(files <-chan godi.FileInfo, results chan<- godi.Result, wg *sync.WaitGroup, done <-chan bool)

func (*SealCommand) Generate

func (s *SealCommand) Generate(done <-chan bool) (<-chan godi.FileInfo, <-chan godi.Result)

func (*SealCommand) IndexPath

func (s *SealCommand) IndexPath(tree string, extension string) string

return a path to an index file residing at tree

func (*SealCommand) Init

func (s *SealCommand) Init(numReaders, numWriters int, items []string) error

Jump to

Keyboard shortcuts

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