xlxxml

package module
v0.0.0-...-bf27d4a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2022 License: GPL-2.0 Imports: 4 Imported by: 0

README

xlx-xml-parse

A simple xml parser for XLX .xml log

For use with Teamwaves dashboard

Please note we ignore the XLXWVV linked peers tag.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(file string) (Nodes, Station)

Types

type Node

type Node struct {
	Callsign      string `xml:"Callsign"`
	IP            string `xml:"IP"`
	LinkedModule  string `xml:"LinkedModule"`
	Protocol      string `xml:"Protocol"`
	ConnectTime   string `xml:"ConnectTime"`
	LastHeardTime string `xml:"LastHeardTime"`
}

type Nodes

type Nodes struct {
	Nodex []Node `xml:"NODE"`
}

type Station

type Station struct {
	Stationx  []Stations `xml:"STATION"`
	Timestamp int64
}

type Stations

type Stations struct {
	XMLName       xml.Name `xml:"STATION"`
	Callsign      string   `xml:"Callsign"`
	Vianode       string   `xml:"Via-node"`
	Onmodule      string   `xml:"On-module"`
	Viapeer       string   `xml:"Via-peer"`
	LastHeardTime string   `xml:"LastHeardTime"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL