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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址