rawproducer

package
v2.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RawMessage

type RawMessage struct {
	Message      interface{}    `json:"message"`
	Src          netip.AddrPort `json:"src"`
	TimeReceived time.Time      `json:"time_received"`
}

Raw message

func (RawMessage) MarshalJSON

func (m RawMessage) MarshalJSON() ([]byte, error)

func (RawMessage) MarshalText

func (m RawMessage) MarshalText() ([]byte, error)

type RawProducer

type RawProducer struct {
}

Producer that keeps the same format as the original flow samples. This can be used for debugging (eg: getting NetFlow Option Templates)

func (*RawProducer) Close

func (p *RawProducer) Close()

func (*RawProducer) Commit

func (p *RawProducer) Commit(flowMessageSet []producer.ProducerMessage)

func (*RawProducer) Produce

func (p *RawProducer) Produce(msg interface{}, args *producer.ProduceArgs) ([]producer.ProducerMessage, error)

Jump to

Keyboard shortcuts

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