preparer

package
v0.0.0-...-371bc73 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	InitializeMaps(*sync.WaitGroup)
	Prepare(chan resource.Resource, chan bool, *sync.WaitGroup)
}

Interface to prepare data to specific structure for writing to Goat server.

type Preparer

type Preparer struct {
	// contains filtered or unexported fields
}

Preparer to prepare data to specific structure for writing to Goat server.

func CreatePreparer

func CreatePreparer(prep preparerI) *Preparer

CreatePreparer creates Preparer for accountable records.

func (*Preparer) InitializeMaps

func (p *Preparer) InitializeMaps(wg *sync.WaitGroup)

InitializeMaps reads additional data for record.

func (*Preparer) Prepare

func (p *Preparer) Prepare(fullInfo chan resource.Resource, done chan bool, mapWg *sync.WaitGroup)

Prepare gets networks from channel and call method to prepare network record and send.

Jump to

Keyboard shortcuts

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