beater

package
v0.0.0-...-1340fc4 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2019 License: Apache-2.0, Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(b *beat.Beat, cfg *libbeatCommon.Config) (beat.Beater, error)

New creates an instance of fabricbeat.

Types

type Fabricbeat

type Fabricbeat struct {
	Fsetup *fabricsetup.FabricSetup
	// contains filtered or unexported fields
}

Fabricbeat configuration.

func (*Fabricbeat) ProcessNewBlocks

func (bt *Fabricbeat) ProcessNewBlocks(b *beat.Beat, ledgerClient *ledger.Client, index int) error

Gets the blocks from the ledger and sends their data to Elasticsearch.

func (*Fabricbeat) Run

func (bt *Fabricbeat) Run(b *beat.Beat) error

Run starts fabricbeat.

func (*Fabricbeat) Stop

func (bt *Fabricbeat) Stop()

Stop stops fabricbeat.

Jump to

Keyboard shortcuts

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