ngasptraps

package
v0.0.0-...-43324d5 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2019 License: MIT, MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(ctx context.Context, response []byte, tgu string)

Parse parsa le trap di risposta dell'API

Types

type Output

type Output struct {
	CpeID         string
	Mode          string
	ModelName     string
	StartTS       string
	EndTS         string
	ChiusoDa      string
	VideoTitle    string
	QoV           string
	NetworkType   string
	IsAlice       string
	Buffering     int
	LongBuffering int
	PlayerError   int
	StreamingType string
	TGU           string
	FQDN          string
}

Output è il risultato mostrato a video

type TrapRAW

type TrapRAW struct {
	Indici []string
	Traps  []string
}

TrapRAW è la lista di trap con i suoi indici.

type XMLResponse

type XMLResponse struct {
	XMLName xml.Name `xml:"Envelope"`
	Text    string   `xml:",chardata"`
	SOAPENC string   `xml:"SOAP-ENC,attr"`
	SOAPENV string   `xml:"SOAP-ENV,attr"`
	Xsd3    string   `xml:"xsd3,attr"`
	Xsi3    string   `xml:"xsi3,attr"`
	Body    struct {
		Text                              string `xml:",chardata"`
		Xmlns                             string `xml:"xmlns,attr"`
		GetTimVisionTrapsResponseResponse struct {
			Text   string `xml:",chardata"`
			Return struct {
				Text       string `xml:",chardata"`
				DeviceRows struct {
					Text string `xml:",chardata"`
					Item struct {
						Text           string `xml:",chardata"`
						Cpeid          string `xml:"cpeid"`
						DeviceTypeName string `xml:"device_type_name"`
						FwName         string `xml:"fw_name"`
						Traps          struct {
							Text string   `xml:",chardata"`
							Item []string `xml:"item"`
						} `xml:"traps"`
						TrapsFields string `xml:"traps_fields"`
						Vendor      string `xml:"vendor"`
					} `xml:"item"`
				} `xml:"device_rows"`
				Result struct {
					Text      string `xml:",chardata"`
					ErrorCode string `xml:"errorCode"`
					ErrorDesc string `xml:"errorDesc"`
				} `xml:"result"`
			} `xml:"return"`
		} `xml:"getTimVisionTrapsResponseResponse"`
	} `xml:"Body"`
}

XMLResponse è la trasposizione in struct della struttura XML di risposta.

Jump to

Keyboard shortcuts

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