convs

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Goroutinewg *sync.WaitGroup
View Source
var OfficialNameToType = map[string]string{
	Ethernet{}.String(): Ethernet{}.Short(),
	IPv4{}.String():     IPv4{}.Short(),
	IPv6{}.String():     IPv6{}.Short(),
	UDP{}.String():      UDP{}.Short(),
	TCP{}.String():      TCP{}.Short(),
}

Functions

func MakeCommands

func MakeCommands() commands

Types

type Ethernet

type Ethernet struct{}

func (Ethernet) AIndex

func (t Ethernet) AIndex() []int

func (Ethernet) BIndex

func (t Ethernet) BIndex() []int

func (Ethernet) FilterAny

func (t Ethernet) FilterAny(vals ...string) string

func (Ethernet) FilterFrom

func (t Ethernet) FilterFrom(vals ...string) string

func (Ethernet) FilterTo

func (t Ethernet) FilterTo(vals ...string) string

func (Ethernet) Short

func (t Ethernet) Short() string

func (Ethernet) String

func (t Ethernet) String() string

type IConvsCallbacks

type IConvsCallbacks interface {
	OnData(data string)
	AfterDataEnd(success bool)
}

type ILoaderCmds

type ILoaderCmds interface {
	Convs(pcapfile string, convs []string, filter string, abs bool, resolve bool) pcap.IPcapCommand
}

type IPv4

type IPv4 struct{}

func (IPv4) AIndex

func (t IPv4) AIndex() []int

func (IPv4) BIndex

func (t IPv4) BIndex() []int

func (IPv4) FilterAny

func (t IPv4) FilterAny(vals ...string) string

func (IPv4) FilterFrom

func (t IPv4) FilterFrom(vals ...string) string

func (IPv4) FilterTo

func (t IPv4) FilterTo(vals ...string) string

func (IPv4) Short

func (t IPv4) Short() string

func (IPv4) String

func (t IPv4) String() string

type IPv6

type IPv6 struct{}

func (IPv6) AIndex

func (t IPv6) AIndex() []int

func (IPv6) BIndex

func (t IPv6) BIndex() []int

func (IPv6) FilterAny

func (t IPv6) FilterAny(vals ...string) string

func (IPv6) FilterFrom

func (t IPv6) FilterFrom(vals ...string) string

func (IPv6) FilterTo

func (t IPv6) FilterTo(vals ...string) string

func (IPv6) Short

func (t IPv6) Short() string

func (IPv6) String

func (t IPv6) String() string

type Loader

type Loader struct {
	SuppressErrors bool // if true, don't report process errors e.g. at shutdown
	// contains filtered or unexported fields
}

func NewLoader

func NewLoader(cmds ILoaderCmds, ctx context.Context) *Loader

func (*Loader) StartLoad

func (c *Loader) StartLoad(pcap string, convs []string, filter string, abs bool, resolve bool, app gowid.IApp, cb IConvsCallbacks)

func (*Loader) StopLoad

func (c *Loader) StopLoad()

type TCP

type TCP struct{}

func (TCP) AIndex

func (t TCP) AIndex() []int

func (TCP) BIndex

func (t TCP) BIndex() []int

func (TCP) FilterAny

func (t TCP) FilterAny(vals ...string) string

func (TCP) FilterFrom

func (t TCP) FilterFrom(vals ...string) string

func (TCP) FilterTo

func (t TCP) FilterTo(vals ...string) string

func (TCP) Short

func (t TCP) Short() string

func (TCP) String

func (t TCP) String() string

type UDP

type UDP struct{}

func (UDP) AIndex

func (t UDP) AIndex() []int

func (UDP) BIndex

func (t UDP) BIndex() []int

func (UDP) FilterAny

func (t UDP) FilterAny(vals ...string) string

func (UDP) FilterFrom

func (t UDP) FilterFrom(vals ...string) string

func (UDP) FilterTo

func (t UDP) FilterTo(vals ...string) string

func (UDP) Short

func (t UDP) Short() string

func (UDP) String

func (t UDP) String() string

Jump to

Keyboard shortcuts

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