unixpacket

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: Apache-2.0 Imports: 1 Imported by: 3

Documentation

Index

Constants

View Source
const PacketHeaderSize = int(unsafe.Sizeof(PacketUnixSocketHeader{}))

Variables

This section is empty.

Functions

This section is empty.

Types

type PacketDirection

type PacketDirection uint8
const (
	PacketReceived PacketDirection = 0
	PacketSent     PacketDirection = 1
)

type PacketUnixSocket

type PacketUnixSocket []byte

func (*PacketUnixSocket) GetData

func (pkt *PacketUnixSocket) GetData() []byte

func (*PacketUnixSocket) GetHeader

func (pkt *PacketUnixSocket) GetHeader() *PacketUnixSocketHeader

type PacketUnixSocketHeader

type PacketUnixSocketHeader struct {
	PacketCounter uint64
	Timestamp     uint64
	CgroupID      uint64
	Direction     PacketDirection
}

Jump to

Keyboard shortcuts

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