libkapxy

package module
v0.0.0-...-b56487e Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

README

libkapxy

An extensible protocol specific network packet parser.

  • It supports parsing Kafka producer (protocol) network packets.
  • For usage look for sample code in the example directory.

Usage

Look into the example directory.


Documentation

Overview

Package libkapxy provides network packet decoder for various protocols

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kap

type Kap struct {
	Type            string
	Port            int
	Handle          *pcap.Handle
	Output          chan Kaptured
	SkipPayloadSize bool
}

func (*Kap) Run

func (k *Kap) Run(done chan bool)

Run starts the packet capture

type Kaptured

type Kaptured struct {
	PointTags   map[string]string
	PointFields map[string]interface{}
	TimeStamp   time.Time
}

Directories

Path Synopsis
protocols
kafka
Package protocols / Kafka is a cut-short version from Sarama module https://github.com/Shopify/sarama/blob/main/LICENSE
Package protocols / Kafka is a cut-short version from Sarama module https://github.com/Shopify/sarama/blob/main/LICENSE

Jump to

Keyboard shortcuts

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