package
0.0.0-20190730192424-891f3ce14ace
Repository: https://github.com/csunetsec/bgpmon.git
Documentation: pkg.go.dev

# Functions

DefaultCaptureFilterOptions returns a CaptureFilterOptions with any collector, and time.Now() as the start and end date.
NewCaptureFilterOptions returns a FilterOptions interface for filtering captures.
NewCaptureFromPB returns a *Capture populated from a pb.BGPCapture.
NewEntityFilterOptions returns FilterOptions for an Entity.
NewEntityFromConfig returns an Entity populated from an EntityConfig.
NewEntityFromPB returns an Entity populated from a protobuf.
NewSession returns a newly allocated Session.

# Constants

AnyCollector is a wild card for collectors in the DB.
SessionReadCapture is provided to a Sessioner's OpenReadStream to open a read capture stream.
SessionReadEntity is provided to a Sessions OpenReadStream to open an entity read stream.
SessionReadPrefix is provided to a Sessioner's OpenReadStream to open a read prefix stream.
SessionWriteCapture is provided to a Sessioner's OpenWriteStream to open a capture write stream.
SessionWriteEntity is provided to a Sessions OpenWriteStream to open an entity write stream.

# Structs

Capture represent a BGPCapture a row in the generated capture tables.
CaptureFilterOptions contains the options to filter by capture messages.
CaptureTable represents a row in the main table.
Entity represents a row in the entities table.
EntityFilterOptions holds all the fields to filter entities.
Session represents a session to the underlying db.
SessionExecutor wraps an util.SQLExecutor with queryProvider.

# Interfaces

CommonMessage is a basic interface which allows the getting and setting of the the main and node tables that are usually involved in most db operations.
CommonReply will wrap any data that needs to be returned by a dbOp.
DBer is an interface that returns a reference to the underlying *sql.DB.
FilterOptions is an empty interface.
ReadStream represents the different kinds of read streams that can be done on a session.
TimeoutDBer composes DBer and GetTimeouter to return timeout duration for dbOps.
WriteStream represents the different kind of write streams that can be done on a session.

# Type aliases

SessionType describes the supported session streams.