Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiscoverOption ¶
type DiscoverOption func(o *dOpts)
DiscoverOption configures the broadcast discovery method
func DiscoveryOptions ¶
func DiscoveryOptions(opt map[string]string) DiscoverOption
DiscoveryOptions sets the key value pairs that make user supplied discovery options.
Supported options:
filter - GJSON Path Syntax search over YAML or JSON data file - set the file to read format - override format detection: json, yaml, yml, choriarpc, results, rpc, response, text, txt
func Filter ¶
func Filter(f *protocol.Filter) DiscoverOption
Filter sets the filter to use for the discovery, else a blank one is used
type SourceFormat ¶
type SourceFormat int
const ( // TextFormat reads nodes from a text file 1 node per line TextFormat SourceFormat // JSONFormat parses a JSON file expecting an array of nodes JSONFormat // YAMLFormat parses a YAML file expecting an array of nodes YAMLFormat // ChoriaResponsesFormat uses Choria responses as produced by choria req -j as source ChoriaResponsesFormat )
Click to show internal directories.
Click to hide internal directories.