annotator

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2020 License: Apache-2.0 Imports: 4 Imported by: 14

Documentation

Overview

Package annotator provides structs and interfaces used throughout the program.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNoAnnotation is for when we could not perform an annotation for some
	// reason. It is intended to convey that the annotation system is still
	// functioning fine, but one or more of the annotations you asked for could
	// not be performed.
	ErrNoAnnotation = errors.New("Could not annotate IP address")
)

Functions

This section is empty.

Types

type Annotations

type Annotations struct {
	UUID      string
	Timestamp time.Time
	Server    api.Annotations `bigquery:"server"` // Use Standard Top-Level Column names.
	Client    api.Annotations `bigquery:"client"` // Use Standard Top-Level Column names.
}

Annotations contains the standard columns we would like to add as annotations for every UUID.

type Annotator

type Annotator interface {
	Annotate(ID *inetdiag.SockID, annotations *Annotations) error
}

Annotator is the interface that all systems that want to add metadata should implement.

Jump to

Keyboard shortcuts

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