filter

package
v0.0.0-...-0f2ffd9 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartFilterStream

func StartFilterStream(sending chan<- []byte, receiving <-chan []byte)

Types

type FSFilter

type FSFilter struct{}

func (FSFilter) Start

func (f FSFilter) Start(c FilterConfig, sending chan<- []byte, receiving <-chan []byte)

type Filter

type Filter interface {
	Start(c FilterConfig, sending chan<- []byte, receiving <-chan []byte)
}

type FilterConfig

type FilterConfig struct {
	Ignore []string `json:"ignore"`
}

func GetFilterConfig

func GetFilterConfig(fileName string) (FilterConfig, error)

type NOPFilter

type NOPFilter struct{}

func (NOPFilter) Start

func (N NOPFilter) Start(c FilterConfig, sending chan<- []byte, receiving <-chan []byte)

type ZachsInotifyData

type ZachsInotifyData struct {
	Date     string `json:"DATE"`
	Event    string `json:"EVENT"`
	FilePath string `json:"PATH"`
	Type     string `json:"TYPE"`
}

Jump to

Keyboard shortcuts

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