fileutil

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 2, 2019 License: BSD-2-Clause Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFiltersFromFile

func NewFiltersFromFile(a string) ([]filter.Filter, error)

func NewMrtFileReader

func NewMrtFileReader(fname string, filters []filter.Filter) (*mrtReader, error)

NewMrtFileReader creates a wrapper around an open MRT file. After succesfull invocation the caller must call Close(). Entries are read using the Scan() method and any internal scanner errors are accessed using the Error() method.

Types

type FilterFile

type FilterFile struct {
	MonitoredPrefixes []string
	SourceASes        []uint32
	DestASes          []uint32
	MidPathASes       []uint32
	AnywhereASes      []uint32
}

FilterFile structs should be populated straight from a json object

Jump to

Keyboard shortcuts

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