models

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: MIT Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoQueryAPI

type GoQueryAPI interface {
	CheckHost(string) (hosts.Host, error)
	ScheduleQuery(string, string) (string, error)
	FetchResults(string) (Rows, string, error)
}

GoQueryAPI defines the set of functions needed for goquery to interface with a backend These functions also must handle any needed authentication because the rest of goquery is blind to the implementation for code separation purposes.

type Rows

type Rows = []map[string]string

Rows is the Osquery response shape parsed from API, or built manually to utilize printers

Jump to

Keyboard shortcuts

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