api

package
v0.1.35 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2022 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SortOnAge added in v0.1.29

func SortOnAge(fileEntityMap map[string]FileEntity) []string

Types

type FileEntity

type FileEntity struct {
	Name      string
	UnixMilli int64
	Size      int64
	Lines     int64
	Sum       []byte
	Header    string
	Footer    string
	HashName  bool
	HasSize   bool
	HasLines  bool
	HasSum    bool
	HasHeader bool
	HasFooter bool
}

type IOEvent

type IOEvent interface {
	Setup(customParams interface{}) bool
	Process(reader io.Reader, customParams interface{}) bool
}

type Processor

type Processor struct {
	IOEventImpl []IOEvent
	WatcherImpl Watcher
}

func (Processor) Start

func (fa Processor) Start()

type Watcher

type Watcher interface {
	Watch(event []IOEvent) (bool, error)
}

Jump to

Keyboard shortcuts

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