Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunTestimony ¶
func RunTestimony(t Testimony)
RunTestimony runs the testimonyd server given the passed in configuration.
Types ¶
type SocketConfig ¶
type SocketConfig struct { SocketName string // filename for the socket Interface string // interface to sniff packets on BlockSize int // block size (in bytes) of a single packet block NumBlocks int // number of packet blocks in the memory region BlockTimeoutMillis int // timeout for filling up a single block FanoutType int // which type of fanout to use (see linux/if_packet.h) FanoutSize int // number of threads to fan out to FanoutID int // fanout id to avoid conflicts User, Group string // user/group to provide the socket to (will chown it) Filter string // BPF filter to apply to this socket }
SocketConfig defines how an individual socket should be set up.
type Testimony ¶
type Testimony []SocketConfig
Testimony is the configuration parsed from the config file.
Click to show internal directories.
Click to hide internal directories.