constant

package
v0.0.0-...-cb763c6 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata

type Metadata struct {
	Net     Network `json:"network"`
	SrcIP   net.IP  `json:"sourceIP"`
	MidIP   net.IP  `json:"dialerIP"`
	DstIP   net.IP  `json:"destinationIP"`
	SrcPort uint16  `json:"sourcePort"`
	MidPort uint16  `json:"dialerPort"`
	DstPort uint16  `json:"destinationPort"`
}

Metadata implements the net.Addr interface.

func (*Metadata) DestinationAddress

func (m *Metadata) DestinationAddress() string

func (*Metadata) Network

func (m *Metadata) Network() string

func (*Metadata) SourceAddress

func (m *Metadata) SourceAddress() string

func (*Metadata) String

func (m *Metadata) String() string

String returns destination address of this metadata. Also for implementing net.Addr interface.

func (*Metadata) UDPAddr

func (m *Metadata) UDPAddr() *net.UDPAddr

type Network

type Network uint8
const (
	TCP Network = iota
	UDP
)

func (Network) MarshalText

func (n Network) MarshalText() ([]byte, error)

func (Network) String

func (n Network) String() string

Jump to

Keyboard shortcuts

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