dscparser

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cell

type Cell struct {
	XMLName xml.Name
	Value   string `xml:"val,attr"`
	Count   int    `xml:"count,attr"`
}

func (Cell) Equals

func (c Cell) Equals(c2 Cell) bool

type DSCData

type DSCData struct {
	XMLName    xml.Name  `xml:"dscdata"`
	Datasets   []Dataset `xml:"array"`
	NameServer string
	Location   string
}

func ReadFile

func ReadFile(filePath string, location string, nameServer string) *DSCData

func ReadFileWithCustomTimestamp

func ReadFileWithCustomTimestamp(filePath string, location string, nameServer string, stopTime time.Time) *DSCData

func (DSCData) Equals

func (d DSCData) Equals(d2 DSCData) bool

func (*DSCData) Sort

func (d *DSCData) Sort()

type Data

type Data struct {
	XMLName xml.Name `xml:"data"`
	Rows    []Row    `xml:",any"`
}

type Dataset

type Dataset struct {
	XMLName       xml.Name        `xml:"array"`
	Name          string          `xml:"name,attr"`
	StartTime     int64           `xml:"start_time,attr"`
	StopTime      int64           `xml:"stop_time,attr"`
	Dimensions    int             `xml:"dimensions,attr"`
	DimensionInfo []DimensionInfo `xml:"dimension"`
	Data          Data            `xml:"data"`
}

func ParseDataset

func ParseDataset(filePath string) *Dataset

func (Dataset) Equals

func (ds Dataset) Equals(ds2 Dataset) bool

func (*Dataset) Sort

func (ds *Dataset) Sort()

type DimensionInfo

type DimensionInfo struct {
	Number int    `xml:"number,attr"`
	Type   string `xml:"type,attr"`
}

type Row

type Row struct {
	XMLName xml.Name
	Value   string `xml:"val,attr"`
	Cells   []Cell `xml:",any"`
}

func ParseRow

func ParseRow(filePath string) *Row

func (Row) Equals

func (r Row) Equals(r2 Row) bool

func (*Row) Sort

func (r *Row) Sort()

Jump to

Keyboard shortcuts

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