Documentation ¶
Index ¶
- func LoadExamplePacketData(name string) map[string]map[string]interface{}
- func PrintStruct(data any)
- type ReplayParser
- func (rp *ReplayParser) Close() error
- func (rp *ReplayParser) GetResult(name string) interface{}
- func (rp *ReplayParser) GetResults() map[string]interface{}
- func (rp *ReplayParser) GetSummary() (proto.Message, error)
- func (rp *ReplayParser) Initialise(filename string) error
- func (rp *ReplayParser) ParseReplay() ([]*packet.Packet, error)
- func (rp *ReplayParser) RegisterGatherer(g embedded.Gatherer)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadExamplePacketData ¶
func PrintStruct ¶
func PrintStruct(data any)
Types ¶
type ReplayParser ¶
type ReplayParser struct { Lookup *mappings.LookupObjects Gatherers map[string]embedded.Gatherer // contains filtered or unexported fields }
func NewReplayParser ¶
func NewReplayParser() *ReplayParser
func WithDefaultGatherers ¶
func WithDefaultGatherers(rp *ReplayParser) *ReplayParser
func (*ReplayParser) Close ¶
func (rp *ReplayParser) Close() error
func (*ReplayParser) GetResult ¶ added in v0.1.3
func (rp *ReplayParser) GetResult(name string) interface{}
Return the results of the given gatherer, or nil if it doesn't exist
func (*ReplayParser) GetResults ¶
func (rp *ReplayParser) GetResults() map[string]interface{}
Return the results of all gatherers in one map, indexed by their names
func (*ReplayParser) GetSummary ¶
func (rp *ReplayParser) GetSummary() (proto.Message, error)
func (*ReplayParser) Initialise ¶
func (rp *ReplayParser) Initialise(filename string) error
func (*ReplayParser) ParseReplay ¶
func (rp *ReplayParser) ParseReplay() ([]*packet.Packet, error)
Parse through the entire replay
func (*ReplayParser) RegisterGatherer ¶
func (rp *ReplayParser) RegisterGatherer(g embedded.Gatherer)
Click to show internal directories.
Click to hide internal directories.