Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Transport ¶
type Transport struct {
// contains filtered or unexported fields
}
func NewTransport ¶
func NewTransport(_options ...options.WithOption) *Transport
func (*Transport) CreateTransportInstance ¶
func (m *Transport) CreateTransportInstance(transportUrl url.URL, options map[string][]string, _options ...options.WithOption) (transports.TransportInstance, error)
func (*Transport) GetTransportCode ¶
func (*Transport) GetTransportName ¶
type TransportInstance ¶
type TransportInstance struct { transportUtils.DefaultBufferedTransportInstance // contains filtered or unexported fields }
func NewPcapTransportInstance ¶
func NewPcapTransportInstance(transportFile string, transportType TransportType, portRange string, speedFactor float32, transport *Transport, _options ...options.WithOption) *TransportInstance
func (*TransportInstance) Close ¶
func (m *TransportInstance) Close() error
func (*TransportInstance) Connect ¶
func (m *TransportInstance) Connect() error
func (*TransportInstance) GetReader ¶
func (m *TransportInstance) GetReader() transports.ExtendedReader
func (*TransportInstance) IsConnected ¶
func (m *TransportInstance) IsConnected() bool
func (*TransportInstance) String ¶
func (m *TransportInstance) String() string
func (*TransportInstance) Write ¶
func (m *TransportInstance) Write(_ []byte) error
type TransportType ¶
type TransportType string
const ( UDP TransportType = "udp" TCP TransportType = "tcp" PCAP TransportType = "pcap" )
Click to show internal directories.
Click to hide internal directories.