Documentation ¶
Overview ¶
Package satellite contains analysis scripts for satellite data
Package satellite contains analysis scripts for satellite data ¶
Package satellite contains analysis scripts for satellite
Index ¶
- func Analyze(data []map[string]interface{}, analysisType string) map[string]map[string]map[string]int
- func AnalyzeSatellite(inputFile string, outputFile string, satellitev1HtmlFile string)
- func ProcessLine() *goflow.Graph
- func Prompt() string
- func WriteToCSV(dataMap map[string]map[string]map[string]int, filename string)
- type Analysis
- type Fetch
- type Filter
- type MetaData
- type Parse
- type Verify
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Analyze ¶
func Analyze(data []map[string]interface{}, analysisType string) map[string]map[string]map[string]int
Analyze processes data based on the type of analysis specified Input - The data ([]map[string]interface{}), the analysisType (Specified by the user prompt) Returns - The stats about the data (map[string]map[string]map[string]int)
func AnalyzeSatellite ¶
AnalyzeSatellite is the main function that handles io and set up of the network
func ProcessLine ¶
ProcessLine constructs the directed cyclic graph that handles data flow between different components.
func WriteToCSV ¶
WriteToCSV writes a map of analyzed data to a CSV file. Input - The data to write (map[string]map[string]map[string]int), the analysis type ("Vantage Point", "Domain"), Output csv filename Returns - None WriteToCSV expects the data to be in a certain nested map format.
Types ¶
type Analysis ¶
type Analysis struct { InAnalysisData <-chan map[string]interface{} InAnalysisType <-chan string OutAnalysisData chan<- map[string]interface{} }
Analysis is the component that stores the input and output for different types of analysis
type Fetch ¶
type Fetch struct { InFetchData <-chan map[string]interface{} InBlockpageData <-chan map[string]*regexp.Regexp InFalsePositiveData <-chan map[string]*regexp.Regexp HTMLPages <-chan map[string]string OutFetchData chan<- map[string]interface{} }
Fetch is the component for applying blockpage and unexpected responses regex matching
type Filter ¶
type Filter struct { InFilterData <-chan map[string]interface{} ControlAnswers <-chan map[string]*tagsSet OutFilterData chan<- map[string]interface{} }
Filter is the component for marking untagged measurements
type MetaData ¶
type MetaData struct { InMetaData <-chan map[string]interface{} Geolocation <-chan map[string]string OutMetaData chan<- map[string]interface{} }
MetaData is the component that assigns measurement metadata to each row