index

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: May 25, 2018 License: GPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Path     string
	Period   tf_time.Times
	Modified time.Time
	// contains filtered or unexported fields
}

type Index

type Index struct {
	Filename string                // The name of this index
	Config   *config.Configuration // The configuration data for this index.

	Period   tf_time.Times // The earliest and latest item within this entire index.
	Modified time.Time     // When this index was last modified.
	// contains filtered or unexported fields
}

func NewIndex

func NewIndex(cfg *config.Configuration) (*Index, error)

Create a new index from a configuration file. Note that this only reads the contents of the index from an existing file. To fully populate it from new or updated data files, use the 'update' method

func (*Index) FindLogs

func (idx *Index) FindLogs(earliest time.Time, latest time.Time) []Entry

func (*Index) Update

func (idx *Index) Update() error

Update all the records for this index and all sub indexes.

func (*Index) WriteOut

func (idx *Index) WriteOut() error

Jump to

Keyboard shortcuts

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