Documentation ¶
Index ¶
Constants ¶
View Source
const (
EventBodyMaxSize = 16384 // 16 KB
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bpf_spin_lock ¶
type Bpf_spin_lock struct{ Val uint32 }
type ConnID ¶
ConnID is a conversion of the following C-Struct into GO.
struct conn_id_t { uint32_t tgid; int32_t fd; uint64_t tsid; };.
type SockAddrIn ¶
SockAddrIn is a conversion of the following C-Struct into GO.
struct sockaddr_in { unsigned short int sin_family; uint16_t sin_port; struct in_addr sin_addr; /* _to size of `struct sockaddr'. */ unsigned char sin_zero[8]; };.
type SocketCloseEvent ¶
type SocketCloseEvent struct { TimestampNano uint64 ConnID ConnID WrittenBytes int64 ReadBytes int64 }
SocketCloseEvent is a conversion of the following C-Struct into GO.
struct socket_close_event_t { uint64_t timestamp_ns; struct conn_id_t conn_id; int64_t wr_bytes; int64_t rd_bytes; };.
type SocketDataEvent ¶
type SocketDataEvent struct { EntryTimestampNano uint64 TimestampNano uint64 ConnID ConnID Direction TrafficDirectionEnum MsgSize uint32 Pos uint64 Msg [EventBodyMaxSize]byte ValidateReadBytes int64 ValidateWrittenBytes int64 }
Socket Data Event .....
type SocketOpenEvent ¶
type SocketOpenEvent struct { TimestampNano uint64 ConnID ConnID Addr SockAddrIn }
SocketOpenEvent is a conversion of the following C-Struct into GO.
struct socket_open_event_t { uint64_t timestamp_ns; struct conn_id_t conn_id; struct sockaddr_in* addr; };.
type TrafficDirectionEnum ¶
type TrafficDirectionEnum int32
TrafficDirectionEnum is a GO-equivalent for the following enum.
enum traffic_direction_t { kEgress, kIngress, };.
const ( EgressTraffic TrafficDirectionEnum = 0 IngressTraffic TrafficDirectionEnum = 1 )
Click to show internal directories.
Click to hide internal directories.