Documentation ¶
Index ¶
- Variables
- func ConvertUnixNanoToTime(unixNano uint64) time.Time
- type Factory
- type Tracker
- func (conn *Tracker) AddCloseEvent(event structs2.SocketCloseEvent)
- func (conn *Tracker) AddDataEvent(event structs2.SocketDataEvent)
- func (conn *Tracker) AddOpenEvent(event structs2.SocketOpenEvent)
- func (conn *Tracker) IsComplete() (bool, []byte, []byte, time.Time, time.Time)
- func (conn *Tracker) IsInactive(duration time.Duration) bool
- func (conn *Tracker) ToBytes() ([]byte, []byte)
- func (conn *Tracker) UpdateTimestamps()
Constants ¶
This section is empty.
Variables ¶
View Source
var Emoji = "\U0001F430" + " Keploy:"
Functions ¶
func ConvertUnixNanoToTime ¶
ConvertUnixNanoToTime takes a Unix timestamp in nanoseconds as a uint64 and returns the corresponding time.Time
Types ¶
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
Factory is a routine-safe container that holds a trackers with unique ID, and able to create new tracker.
func NewFactory ¶
NewFactory creates a new instance of the factory.
func (*Factory) GetOrCreate ¶
GetOrCreate returns a tracker that related to the given connection and transaction ids. If there is no such tracker we create a new one.
func (*Factory) HandleReadyConnections ¶
type Tracker ¶
func (*Tracker) AddCloseEvent ¶
func (conn *Tracker) AddCloseEvent(event structs2.SocketCloseEvent)
func (*Tracker) AddDataEvent ¶
func (conn *Tracker) AddDataEvent(event structs2.SocketDataEvent)
func (*Tracker) AddOpenEvent ¶
func (conn *Tracker) AddOpenEvent(event structs2.SocketOpenEvent)
func (*Tracker) IsComplete ¶
IsComplete() checks if the current connection has valid request & response info to capture and also returns the request and response data buffer.
func (*Tracker) UpdateTimestamps ¶
func (conn *Tracker) UpdateTimestamps()
Click to show internal directories.
Click to hide internal directories.