formatter

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PROTO_REMAPPED_IN_BYTES  = 200
	PROTO_REMAPPED_IN_PKTS   = 201
	PROTO_REMAPPED_OUT_BYTES = 202
	PROTO_REMAPPED_OUT_PKTS  = 203
)

Variables

View Source
var MappingYaml string

Functions

func SetLogger

func SetLogger(l *logrus.Logger)

Types

type NtopngJson

type NtopngJson struct {
}

func (*NtopngJson) Format

func (d *NtopngJson) Format(data interface{}) ([]byte, []byte, error)

func (*NtopngJson) Init

func (d *NtopngJson) Init() error

func (*NtopngJson) Prepare

func (d *NtopngJson) Prepare() error

type NtopngTlv

type NtopngTlv struct {
}

func (*NtopngTlv) Format

func (d *NtopngTlv) Format(data interface{}) ([]byte, []byte, error)

func (*NtopngTlv) Init

func (d *NtopngTlv) Init() error

func (*NtopngTlv) Prepare

func (d *NtopngTlv) Prepare() error

Jump to

Keyboard shortcuts

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