analyzer

package
v0.0.0-...-cb39d06 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Analyzer

type Analyzer struct {
	ChIn  chan consumer.Message
	ChOut chan spec.MessageSpec
	// contains filtered or unexported fields
}

Analyzer analyzes incoming messages and pipes the result through

func New

func New(chIn chan consumer.Message, chOut chan spec.MessageSpec, database db.Database) *Analyzer

New creates a new Analyzer

func (*Analyzer) Watch

func (a *Analyzer) Watch()

Watch for incoming messages

type JSONAnalyzer

type JSONAnalyzer struct{}

JSONAnalyzer analyzes json payloads to build a spec

func (JSONAnalyzer) GetPayloadSpec

func (a JSONAnalyzer) GetPayloadSpec(payload []byte) (spec.PayloadSpec, error)

GetPayloadSpec analyzes a payload and returns the spec

type PayloadAnalyzer

type PayloadAnalyzer interface {
	GetPayloadSpec([]byte) (spec.PayloadSpec, error)
}

PayloadAnalyzer objects analyze payloads

Jump to

Keyboard shortcuts

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