Format generated source code.

This commit is contained in:
John Beisley 2022-06-13 17:44:15 +01:00
parent dd6d6a16d3
commit 6617fb84e1
2 changed files with 246 additions and 162 deletions

View File

@ -1,10 +1,13 @@
package main package main
import ( import (
"bytes"
"encoding/xml" "encoding/xml"
"errors" "errors"
"flag" "flag"
"fmt" "fmt"
"go/format"
"io/ioutil"
"os" "os"
"path/filepath" "path/filepath"
"reflect" "reflect"
@ -24,6 +27,7 @@ import (
) )
var ( var (
formatOutput = flag.Bool("format_output", true, "If true, format the output source code.")
outputDir = flag.String("output_dir", "", "Path to directory to write output in.") outputDir = flag.String("output_dir", "", "Path to directory to write output in.")
srvManifests = flag.String("srv_manifests", "", "Path to srvmanifests.toml") srvManifests = flag.String("srv_manifests", "", "Path to srvmanifests.toml")
srvTemplate = flag.String("srv_template", "", "Path to srv.gotemplate.") srvTemplate = flag.String("srv_template", "", "Path to srv.gotemplate.")
@ -159,13 +163,8 @@ func processService(
return err return err
} }
outputPath := filepath.Join(outputDir, srvManifest.Package+".go") buf := &bytes.Buffer{}
outFile, err := os.Create(outputPath) err = tmpl.ExecuteTemplate(buf, "service", tmplArgs{
if err != nil {
return fmt.Errorf("creating output service file %q: %w", outputPath, err)
}
defer outFile.Close()
err = tmpl.ExecuteTemplate(outFile, "service", tmplArgs{
Manifest: srvManifest, Manifest: srvManifest,
Imps: imps, Imps: imps,
SCPD: sd, SCPD: sd,
@ -173,8 +172,18 @@ func processService(
if err != nil { if err != nil {
return fmt.Errorf("executing srv_template: %w", err) return fmt.Errorf("executing srv_template: %w", err)
} }
if err := outFile.Close(); err != nil { src := buf.Bytes()
return fmt.Errorf("closing output service file %q: %w", outputPath, err) if *formatOutput {
var err error
src, err = format.Source(src)
if err != nil {
return fmt.Errorf("formatting output service file: %w", err)
}
}
outputPath := filepath.Join(outputDir, srvManifest.Package+".go")
if err := ioutil.WriteFile(outputPath, src, os.ModePerm); err != nil {
return fmt.Errorf("writing output service file %q: %w", outputPath, err)
} }
return nil return nil

View File

@ -11,7 +11,7 @@ const ServiceType = "urn:schemas-upnp-org:service:WANPPPConnection:1"
// AddPortMapping provides request and response for the action. // AddPortMapping provides request and response for the action.
// //
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
type AddPortMapping struct{ type AddPortMapping struct {
Request AddPortMappingRequest Request AddPortMappingRequest
Response AddPortMappingResponse Response AddPortMappingResponse
} }
@ -20,15 +20,18 @@ var _ pkg1.Action = &AddPortMapping{}
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *AddPortMapping) ServiceType() string { return ServiceType } func (a *AddPortMapping) ServiceType() string { return ServiceType }
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action. // ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *AddPortMapping) ActionName() string { return "AddPortMapping" } func (a *AddPortMapping) ActionName() string { return "AddPortMapping" }
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *AddPortMapping) RefRequest() any { return &a.Request } func (a *AddPortMapping) RefRequest() any { return &a.Request }
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *AddPortMapping) RefResponse() any { return &a.Response } func (a *AddPortMapping) RefResponse() any { return &a.Response }
// AddPortMappingRequest contains the "in" args for the "AddPortMapping" action. // AddPortMappingRequest contains the "in" args for the "AddPortMapping" action.
type AddPortMappingRequest struct{ type AddPortMappingRequest struct {
NewRemoteHost string NewRemoteHost string
NewExternalPort pkg2.UI2 NewExternalPort pkg2.UI2
NewProtocol string NewProtocol string
@ -45,7 +48,7 @@ type AddPortMappingResponse struct{}
// ConfigureConnection provides request and response for the action. // ConfigureConnection provides request and response for the action.
// //
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
type ConfigureConnection struct{ type ConfigureConnection struct {
Request ConfigureConnectionRequest Request ConfigureConnectionRequest
Response ConfigureConnectionResponse Response ConfigureConnectionResponse
} }
@ -54,15 +57,18 @@ var _ pkg1.Action = &ConfigureConnection{}
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *ConfigureConnection) ServiceType() string { return ServiceType } func (a *ConfigureConnection) ServiceType() string { return ServiceType }
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action. // ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *ConfigureConnection) ActionName() string { return "ConfigureConnection" } func (a *ConfigureConnection) ActionName() string { return "ConfigureConnection" }
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *ConfigureConnection) RefRequest() any { return &a.Request } func (a *ConfigureConnection) RefRequest() any { return &a.Request }
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *ConfigureConnection) RefResponse() any { return &a.Response } func (a *ConfigureConnection) RefResponse() any { return &a.Response }
// ConfigureConnectionRequest contains the "in" args for the "ConfigureConnection" action. // ConfigureConnectionRequest contains the "in" args for the "ConfigureConnection" action.
type ConfigureConnectionRequest struct{ type ConfigureConnectionRequest struct {
NewUserName string NewUserName string
NewPassword string NewPassword string
} }
@ -73,7 +79,7 @@ type ConfigureConnectionResponse struct{}
// DeletePortMapping provides request and response for the action. // DeletePortMapping provides request and response for the action.
// //
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
type DeletePortMapping struct{ type DeletePortMapping struct {
Request DeletePortMappingRequest Request DeletePortMappingRequest
Response DeletePortMappingResponse Response DeletePortMappingResponse
} }
@ -82,15 +88,18 @@ var _ pkg1.Action = &DeletePortMapping{}
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *DeletePortMapping) ServiceType() string { return ServiceType } func (a *DeletePortMapping) ServiceType() string { return ServiceType }
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action. // ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *DeletePortMapping) ActionName() string { return "DeletePortMapping" } func (a *DeletePortMapping) ActionName() string { return "DeletePortMapping" }
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *DeletePortMapping) RefRequest() any { return &a.Request } func (a *DeletePortMapping) RefRequest() any { return &a.Request }
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *DeletePortMapping) RefResponse() any { return &a.Response } func (a *DeletePortMapping) RefResponse() any { return &a.Response }
// DeletePortMappingRequest contains the "in" args for the "DeletePortMapping" action. // DeletePortMappingRequest contains the "in" args for the "DeletePortMapping" action.
type DeletePortMappingRequest struct{ type DeletePortMappingRequest struct {
NewRemoteHost string NewRemoteHost string
NewExternalPort pkg2.UI2 NewExternalPort pkg2.UI2
NewProtocol string NewProtocol string
@ -102,7 +111,7 @@ type DeletePortMappingResponse struct{}
// ForceTermination provides request and response for the action. // ForceTermination provides request and response for the action.
// //
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
type ForceTermination struct{ type ForceTermination struct {
Request ForceTerminationRequest Request ForceTerminationRequest
Response ForceTerminationResponse Response ForceTerminationResponse
} }
@ -111,10 +120,13 @@ var _ pkg1.Action = &ForceTermination{}
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *ForceTermination) ServiceType() string { return ServiceType } func (a *ForceTermination) ServiceType() string { return ServiceType }
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action. // ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *ForceTermination) ActionName() string { return "ForceTermination" } func (a *ForceTermination) ActionName() string { return "ForceTermination" }
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *ForceTermination) RefRequest() any { return &a.Request } func (a *ForceTermination) RefRequest() any { return &a.Request }
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *ForceTermination) RefResponse() any { return &a.Response } func (a *ForceTermination) RefResponse() any { return &a.Response }
@ -127,7 +139,7 @@ type ForceTerminationResponse struct{}
// GetAutoDisconnectTime provides request and response for the action. // GetAutoDisconnectTime provides request and response for the action.
// //
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
type GetAutoDisconnectTime struct{ type GetAutoDisconnectTime struct {
Request GetAutoDisconnectTimeRequest Request GetAutoDisconnectTimeRequest
Response GetAutoDisconnectTimeResponse Response GetAutoDisconnectTimeResponse
} }
@ -136,10 +148,13 @@ var _ pkg1.Action = &GetAutoDisconnectTime{}
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetAutoDisconnectTime) ServiceType() string { return ServiceType } func (a *GetAutoDisconnectTime) ServiceType() string { return ServiceType }
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action. // ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetAutoDisconnectTime) ActionName() string { return "GetAutoDisconnectTime" } func (a *GetAutoDisconnectTime) ActionName() string { return "GetAutoDisconnectTime" }
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetAutoDisconnectTime) RefRequest() any { return &a.Request } func (a *GetAutoDisconnectTime) RefRequest() any { return &a.Request }
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetAutoDisconnectTime) RefResponse() any { return &a.Response } func (a *GetAutoDisconnectTime) RefResponse() any { return &a.Response }
@ -147,14 +162,14 @@ func (a *GetAutoDisconnectTime) RefResponse() any { return &a.Response }
type GetAutoDisconnectTimeRequest struct{} type GetAutoDisconnectTimeRequest struct{}
// GetAutoDisconnectTimeResponse contains the "out" args for the "GetAutoDisconnectTime" action. // GetAutoDisconnectTimeResponse contains the "out" args for the "GetAutoDisconnectTime" action.
type GetAutoDisconnectTimeResponse struct{ type GetAutoDisconnectTimeResponse struct {
NewAutoDisconnectTime pkg2.UI4 NewAutoDisconnectTime pkg2.UI4
} }
// GetConnectionTypeInfo provides request and response for the action. // GetConnectionTypeInfo provides request and response for the action.
// //
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
type GetConnectionTypeInfo struct{ type GetConnectionTypeInfo struct {
Request GetConnectionTypeInfoRequest Request GetConnectionTypeInfoRequest
Response GetConnectionTypeInfoResponse Response GetConnectionTypeInfoResponse
} }
@ -163,10 +178,13 @@ var _ pkg1.Action = &GetConnectionTypeInfo{}
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetConnectionTypeInfo) ServiceType() string { return ServiceType } func (a *GetConnectionTypeInfo) ServiceType() string { return ServiceType }
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action. // ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetConnectionTypeInfo) ActionName() string { return "GetConnectionTypeInfo" } func (a *GetConnectionTypeInfo) ActionName() string { return "GetConnectionTypeInfo" }
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetConnectionTypeInfo) RefRequest() any { return &a.Request } func (a *GetConnectionTypeInfo) RefRequest() any { return &a.Request }
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetConnectionTypeInfo) RefResponse() any { return &a.Response } func (a *GetConnectionTypeInfo) RefResponse() any { return &a.Response }
@ -174,7 +192,7 @@ func (a *GetConnectionTypeInfo) RefResponse() any { return &a.Response }
type GetConnectionTypeInfoRequest struct{} type GetConnectionTypeInfoRequest struct{}
// GetConnectionTypeInfoResponse contains the "out" args for the "GetConnectionTypeInfo" action. // GetConnectionTypeInfoResponse contains the "out" args for the "GetConnectionTypeInfo" action.
type GetConnectionTypeInfoResponse struct{ type GetConnectionTypeInfoResponse struct {
NewConnectionType string NewConnectionType string
NewPossibleConnectionTypes string NewPossibleConnectionTypes string
} }
@ -182,7 +200,7 @@ type GetConnectionTypeInfoResponse struct{
// GetExternalIPAddress provides request and response for the action. // GetExternalIPAddress provides request and response for the action.
// //
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
type GetExternalIPAddress struct{ type GetExternalIPAddress struct {
Request GetExternalIPAddressRequest Request GetExternalIPAddressRequest
Response GetExternalIPAddressResponse Response GetExternalIPAddressResponse
} }
@ -191,10 +209,13 @@ var _ pkg1.Action = &GetExternalIPAddress{}
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetExternalIPAddress) ServiceType() string { return ServiceType } func (a *GetExternalIPAddress) ServiceType() string { return ServiceType }
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action. // ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetExternalIPAddress) ActionName() string { return "GetExternalIPAddress" } func (a *GetExternalIPAddress) ActionName() string { return "GetExternalIPAddress" }
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetExternalIPAddress) RefRequest() any { return &a.Request } func (a *GetExternalIPAddress) RefRequest() any { return &a.Request }
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetExternalIPAddress) RefResponse() any { return &a.Response } func (a *GetExternalIPAddress) RefResponse() any { return &a.Response }
@ -202,14 +223,14 @@ func (a *GetExternalIPAddress) RefResponse() any { return &a.Response }
type GetExternalIPAddressRequest struct{} type GetExternalIPAddressRequest struct{}
// GetExternalIPAddressResponse contains the "out" args for the "GetExternalIPAddress" action. // GetExternalIPAddressResponse contains the "out" args for the "GetExternalIPAddress" action.
type GetExternalIPAddressResponse struct{ type GetExternalIPAddressResponse struct {
NewExternalIPAddress string NewExternalIPAddress string
} }
// GetGenericPortMappingEntry provides request and response for the action. // GetGenericPortMappingEntry provides request and response for the action.
// //
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
type GetGenericPortMappingEntry struct{ type GetGenericPortMappingEntry struct {
Request GetGenericPortMappingEntryRequest Request GetGenericPortMappingEntryRequest
Response GetGenericPortMappingEntryResponse Response GetGenericPortMappingEntryResponse
} }
@ -218,20 +239,23 @@ var _ pkg1.Action = &GetGenericPortMappingEntry{}
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetGenericPortMappingEntry) ServiceType() string { return ServiceType } func (a *GetGenericPortMappingEntry) ServiceType() string { return ServiceType }
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action. // ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetGenericPortMappingEntry) ActionName() string { return "GetGenericPortMappingEntry" } func (a *GetGenericPortMappingEntry) ActionName() string { return "GetGenericPortMappingEntry" }
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetGenericPortMappingEntry) RefRequest() any { return &a.Request } func (a *GetGenericPortMappingEntry) RefRequest() any { return &a.Request }
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetGenericPortMappingEntry) RefResponse() any { return &a.Response } func (a *GetGenericPortMappingEntry) RefResponse() any { return &a.Response }
// GetGenericPortMappingEntryRequest contains the "in" args for the "GetGenericPortMappingEntry" action. // GetGenericPortMappingEntryRequest contains the "in" args for the "GetGenericPortMappingEntry" action.
type GetGenericPortMappingEntryRequest struct{ type GetGenericPortMappingEntryRequest struct {
NewPortMappingIndex pkg2.UI2 NewPortMappingIndex pkg2.UI2
} }
// GetGenericPortMappingEntryResponse contains the "out" args for the "GetGenericPortMappingEntry" action. // GetGenericPortMappingEntryResponse contains the "out" args for the "GetGenericPortMappingEntry" action.
type GetGenericPortMappingEntryResponse struct{ type GetGenericPortMappingEntryResponse struct {
NewRemoteHost string NewRemoteHost string
NewExternalPort pkg2.UI2 NewExternalPort pkg2.UI2
NewProtocol string NewProtocol string
@ -245,7 +269,7 @@ type GetGenericPortMappingEntryResponse struct{
// GetIdleDisconnectTime provides request and response for the action. // GetIdleDisconnectTime provides request and response for the action.
// //
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
type GetIdleDisconnectTime struct{ type GetIdleDisconnectTime struct {
Request GetIdleDisconnectTimeRequest Request GetIdleDisconnectTimeRequest
Response GetIdleDisconnectTimeResponse Response GetIdleDisconnectTimeResponse
} }
@ -254,10 +278,13 @@ var _ pkg1.Action = &GetIdleDisconnectTime{}
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetIdleDisconnectTime) ServiceType() string { return ServiceType } func (a *GetIdleDisconnectTime) ServiceType() string { return ServiceType }
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action. // ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetIdleDisconnectTime) ActionName() string { return "GetIdleDisconnectTime" } func (a *GetIdleDisconnectTime) ActionName() string { return "GetIdleDisconnectTime" }
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetIdleDisconnectTime) RefRequest() any { return &a.Request } func (a *GetIdleDisconnectTime) RefRequest() any { return &a.Request }
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetIdleDisconnectTime) RefResponse() any { return &a.Response } func (a *GetIdleDisconnectTime) RefResponse() any { return &a.Response }
@ -265,14 +292,14 @@ func (a *GetIdleDisconnectTime) RefResponse() any { return &a.Response }
type GetIdleDisconnectTimeRequest struct{} type GetIdleDisconnectTimeRequest struct{}
// GetIdleDisconnectTimeResponse contains the "out" args for the "GetIdleDisconnectTime" action. // GetIdleDisconnectTimeResponse contains the "out" args for the "GetIdleDisconnectTime" action.
type GetIdleDisconnectTimeResponse struct{ type GetIdleDisconnectTimeResponse struct {
NewIdleDisconnectTime pkg2.UI4 NewIdleDisconnectTime pkg2.UI4
} }
// GetLinkLayerMaxBitRates provides request and response for the action. // GetLinkLayerMaxBitRates provides request and response for the action.
// //
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
type GetLinkLayerMaxBitRates struct{ type GetLinkLayerMaxBitRates struct {
Request GetLinkLayerMaxBitRatesRequest Request GetLinkLayerMaxBitRatesRequest
Response GetLinkLayerMaxBitRatesResponse Response GetLinkLayerMaxBitRatesResponse
} }
@ -281,10 +308,13 @@ var _ pkg1.Action = &GetLinkLayerMaxBitRates{}
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetLinkLayerMaxBitRates) ServiceType() string { return ServiceType } func (a *GetLinkLayerMaxBitRates) ServiceType() string { return ServiceType }
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action. // ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetLinkLayerMaxBitRates) ActionName() string { return "GetLinkLayerMaxBitRates" } func (a *GetLinkLayerMaxBitRates) ActionName() string { return "GetLinkLayerMaxBitRates" }
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetLinkLayerMaxBitRates) RefRequest() any { return &a.Request } func (a *GetLinkLayerMaxBitRates) RefRequest() any { return &a.Request }
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetLinkLayerMaxBitRates) RefResponse() any { return &a.Response } func (a *GetLinkLayerMaxBitRates) RefResponse() any { return &a.Response }
@ -292,7 +322,7 @@ func (a *GetLinkLayerMaxBitRates) RefResponse() any { return &a.Response }
type GetLinkLayerMaxBitRatesRequest struct{} type GetLinkLayerMaxBitRatesRequest struct{}
// GetLinkLayerMaxBitRatesResponse contains the "out" args for the "GetLinkLayerMaxBitRates" action. // GetLinkLayerMaxBitRatesResponse contains the "out" args for the "GetLinkLayerMaxBitRates" action.
type GetLinkLayerMaxBitRatesResponse struct{ type GetLinkLayerMaxBitRatesResponse struct {
NewUpstreamMaxBitRate pkg2.UI4 NewUpstreamMaxBitRate pkg2.UI4
NewDownstreamMaxBitRate pkg2.UI4 NewDownstreamMaxBitRate pkg2.UI4
} }
@ -300,7 +330,7 @@ type GetLinkLayerMaxBitRatesResponse struct{
// GetNATRSIPStatus provides request and response for the action. // GetNATRSIPStatus provides request and response for the action.
// //
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
type GetNATRSIPStatus struct{ type GetNATRSIPStatus struct {
Request GetNATRSIPStatusRequest Request GetNATRSIPStatusRequest
Response GetNATRSIPStatusResponse Response GetNATRSIPStatusResponse
} }
@ -309,10 +339,13 @@ var _ pkg1.Action = &GetNATRSIPStatus{}
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetNATRSIPStatus) ServiceType() string { return ServiceType } func (a *GetNATRSIPStatus) ServiceType() string { return ServiceType }
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action. // ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetNATRSIPStatus) ActionName() string { return "GetNATRSIPStatus" } func (a *GetNATRSIPStatus) ActionName() string { return "GetNATRSIPStatus" }
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetNATRSIPStatus) RefRequest() any { return &a.Request } func (a *GetNATRSIPStatus) RefRequest() any { return &a.Request }
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetNATRSIPStatus) RefResponse() any { return &a.Response } func (a *GetNATRSIPStatus) RefResponse() any { return &a.Response }
@ -320,7 +353,7 @@ func (a *GetNATRSIPStatus) RefResponse() any { return &a.Response }
type GetNATRSIPStatusRequest struct{} type GetNATRSIPStatusRequest struct{}
// GetNATRSIPStatusResponse contains the "out" args for the "GetNATRSIPStatus" action. // GetNATRSIPStatusResponse contains the "out" args for the "GetNATRSIPStatus" action.
type GetNATRSIPStatusResponse struct{ type GetNATRSIPStatusResponse struct {
NewRSIPAvailable pkg2.Boolean NewRSIPAvailable pkg2.Boolean
NewNATEnabled pkg2.Boolean NewNATEnabled pkg2.Boolean
} }
@ -328,7 +361,7 @@ type GetNATRSIPStatusResponse struct{
// GetPPPAuthenticationProtocol provides request and response for the action. // GetPPPAuthenticationProtocol provides request and response for the action.
// //
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
type GetPPPAuthenticationProtocol struct{ type GetPPPAuthenticationProtocol struct {
Request GetPPPAuthenticationProtocolRequest Request GetPPPAuthenticationProtocolRequest
Response GetPPPAuthenticationProtocolResponse Response GetPPPAuthenticationProtocolResponse
} }
@ -337,10 +370,13 @@ var _ pkg1.Action = &GetPPPAuthenticationProtocol{}
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetPPPAuthenticationProtocol) ServiceType() string { return ServiceType } func (a *GetPPPAuthenticationProtocol) ServiceType() string { return ServiceType }
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action. // ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetPPPAuthenticationProtocol) ActionName() string { return "GetPPPAuthenticationProtocol" } func (a *GetPPPAuthenticationProtocol) ActionName() string { return "GetPPPAuthenticationProtocol" }
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetPPPAuthenticationProtocol) RefRequest() any { return &a.Request } func (a *GetPPPAuthenticationProtocol) RefRequest() any { return &a.Request }
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetPPPAuthenticationProtocol) RefResponse() any { return &a.Response } func (a *GetPPPAuthenticationProtocol) RefResponse() any { return &a.Response }
@ -348,14 +384,14 @@ func (a *GetPPPAuthenticationProtocol) RefResponse() any { return &a.Response }
type GetPPPAuthenticationProtocolRequest struct{} type GetPPPAuthenticationProtocolRequest struct{}
// GetPPPAuthenticationProtocolResponse contains the "out" args for the "GetPPPAuthenticationProtocol" action. // GetPPPAuthenticationProtocolResponse contains the "out" args for the "GetPPPAuthenticationProtocol" action.
type GetPPPAuthenticationProtocolResponse struct{ type GetPPPAuthenticationProtocolResponse struct {
NewPPPAuthenticationProtocol string NewPPPAuthenticationProtocol string
} }
// GetPPPCompressionProtocol provides request and response for the action. // GetPPPCompressionProtocol provides request and response for the action.
// //
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
type GetPPPCompressionProtocol struct{ type GetPPPCompressionProtocol struct {
Request GetPPPCompressionProtocolRequest Request GetPPPCompressionProtocolRequest
Response GetPPPCompressionProtocolResponse Response GetPPPCompressionProtocolResponse
} }
@ -364,10 +400,13 @@ var _ pkg1.Action = &GetPPPCompressionProtocol{}
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetPPPCompressionProtocol) ServiceType() string { return ServiceType } func (a *GetPPPCompressionProtocol) ServiceType() string { return ServiceType }
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action. // ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetPPPCompressionProtocol) ActionName() string { return "GetPPPCompressionProtocol" } func (a *GetPPPCompressionProtocol) ActionName() string { return "GetPPPCompressionProtocol" }
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetPPPCompressionProtocol) RefRequest() any { return &a.Request } func (a *GetPPPCompressionProtocol) RefRequest() any { return &a.Request }
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetPPPCompressionProtocol) RefResponse() any { return &a.Response } func (a *GetPPPCompressionProtocol) RefResponse() any { return &a.Response }
@ -375,14 +414,14 @@ func (a *GetPPPCompressionProtocol) RefResponse() any { return &a.Response }
type GetPPPCompressionProtocolRequest struct{} type GetPPPCompressionProtocolRequest struct{}
// GetPPPCompressionProtocolResponse contains the "out" args for the "GetPPPCompressionProtocol" action. // GetPPPCompressionProtocolResponse contains the "out" args for the "GetPPPCompressionProtocol" action.
type GetPPPCompressionProtocolResponse struct{ type GetPPPCompressionProtocolResponse struct {
NewPPPCompressionProtocol string NewPPPCompressionProtocol string
} }
// GetPPPEncryptionProtocol provides request and response for the action. // GetPPPEncryptionProtocol provides request and response for the action.
// //
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
type GetPPPEncryptionProtocol struct{ type GetPPPEncryptionProtocol struct {
Request GetPPPEncryptionProtocolRequest Request GetPPPEncryptionProtocolRequest
Response GetPPPEncryptionProtocolResponse Response GetPPPEncryptionProtocolResponse
} }
@ -391,10 +430,13 @@ var _ pkg1.Action = &GetPPPEncryptionProtocol{}
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetPPPEncryptionProtocol) ServiceType() string { return ServiceType } func (a *GetPPPEncryptionProtocol) ServiceType() string { return ServiceType }
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action. // ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetPPPEncryptionProtocol) ActionName() string { return "GetPPPEncryptionProtocol" } func (a *GetPPPEncryptionProtocol) ActionName() string { return "GetPPPEncryptionProtocol" }
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetPPPEncryptionProtocol) RefRequest() any { return &a.Request } func (a *GetPPPEncryptionProtocol) RefRequest() any { return &a.Request }
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetPPPEncryptionProtocol) RefResponse() any { return &a.Response } func (a *GetPPPEncryptionProtocol) RefResponse() any { return &a.Response }
@ -402,14 +444,14 @@ func (a *GetPPPEncryptionProtocol) RefResponse() any { return &a.Response }
type GetPPPEncryptionProtocolRequest struct{} type GetPPPEncryptionProtocolRequest struct{}
// GetPPPEncryptionProtocolResponse contains the "out" args for the "GetPPPEncryptionProtocol" action. // GetPPPEncryptionProtocolResponse contains the "out" args for the "GetPPPEncryptionProtocol" action.
type GetPPPEncryptionProtocolResponse struct{ type GetPPPEncryptionProtocolResponse struct {
NewPPPEncryptionProtocol string NewPPPEncryptionProtocol string
} }
// GetPassword provides request and response for the action. // GetPassword provides request and response for the action.
// //
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
type GetPassword struct{ type GetPassword struct {
Request GetPasswordRequest Request GetPasswordRequest
Response GetPasswordResponse Response GetPasswordResponse
} }
@ -418,10 +460,13 @@ var _ pkg1.Action = &GetPassword{}
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetPassword) ServiceType() string { return ServiceType } func (a *GetPassword) ServiceType() string { return ServiceType }
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action. // ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetPassword) ActionName() string { return "GetPassword" } func (a *GetPassword) ActionName() string { return "GetPassword" }
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetPassword) RefRequest() any { return &a.Request } func (a *GetPassword) RefRequest() any { return &a.Request }
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetPassword) RefResponse() any { return &a.Response } func (a *GetPassword) RefResponse() any { return &a.Response }
@ -429,14 +474,14 @@ func (a *GetPassword) RefResponse() any { return &a.Response }
type GetPasswordRequest struct{} type GetPasswordRequest struct{}
// GetPasswordResponse contains the "out" args for the "GetPassword" action. // GetPasswordResponse contains the "out" args for the "GetPassword" action.
type GetPasswordResponse struct{ type GetPasswordResponse struct {
NewPassword string NewPassword string
} }
// GetSpecificPortMappingEntry provides request and response for the action. // GetSpecificPortMappingEntry provides request and response for the action.
// //
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
type GetSpecificPortMappingEntry struct{ type GetSpecificPortMappingEntry struct {
Request GetSpecificPortMappingEntryRequest Request GetSpecificPortMappingEntryRequest
Response GetSpecificPortMappingEntryResponse Response GetSpecificPortMappingEntryResponse
} }
@ -445,22 +490,25 @@ var _ pkg1.Action = &GetSpecificPortMappingEntry{}
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetSpecificPortMappingEntry) ServiceType() string { return ServiceType } func (a *GetSpecificPortMappingEntry) ServiceType() string { return ServiceType }
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action. // ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetSpecificPortMappingEntry) ActionName() string { return "GetSpecificPortMappingEntry" } func (a *GetSpecificPortMappingEntry) ActionName() string { return "GetSpecificPortMappingEntry" }
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetSpecificPortMappingEntry) RefRequest() any { return &a.Request } func (a *GetSpecificPortMappingEntry) RefRequest() any { return &a.Request }
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetSpecificPortMappingEntry) RefResponse() any { return &a.Response } func (a *GetSpecificPortMappingEntry) RefResponse() any { return &a.Response }
// GetSpecificPortMappingEntryRequest contains the "in" args for the "GetSpecificPortMappingEntry" action. // GetSpecificPortMappingEntryRequest contains the "in" args for the "GetSpecificPortMappingEntry" action.
type GetSpecificPortMappingEntryRequest struct{ type GetSpecificPortMappingEntryRequest struct {
NewRemoteHost string NewRemoteHost string
NewExternalPort pkg2.UI2 NewExternalPort pkg2.UI2
NewProtocol string NewProtocol string
} }
// GetSpecificPortMappingEntryResponse contains the "out" args for the "GetSpecificPortMappingEntry" action. // GetSpecificPortMappingEntryResponse contains the "out" args for the "GetSpecificPortMappingEntry" action.
type GetSpecificPortMappingEntryResponse struct{ type GetSpecificPortMappingEntryResponse struct {
NewInternalPort pkg2.UI2 NewInternalPort pkg2.UI2
NewInternalClient string NewInternalClient string
NewEnabled pkg2.Boolean NewEnabled pkg2.Boolean
@ -471,7 +519,7 @@ type GetSpecificPortMappingEntryResponse struct{
// GetStatusInfo provides request and response for the action. // GetStatusInfo provides request and response for the action.
// //
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
type GetStatusInfo struct{ type GetStatusInfo struct {
Request GetStatusInfoRequest Request GetStatusInfoRequest
Response GetStatusInfoResponse Response GetStatusInfoResponse
} }
@ -480,10 +528,13 @@ var _ pkg1.Action = &GetStatusInfo{}
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetStatusInfo) ServiceType() string { return ServiceType } func (a *GetStatusInfo) ServiceType() string { return ServiceType }
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action. // ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetStatusInfo) ActionName() string { return "GetStatusInfo" } func (a *GetStatusInfo) ActionName() string { return "GetStatusInfo" }
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetStatusInfo) RefRequest() any { return &a.Request } func (a *GetStatusInfo) RefRequest() any { return &a.Request }
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetStatusInfo) RefResponse() any { return &a.Response } func (a *GetStatusInfo) RefResponse() any { return &a.Response }
@ -491,7 +542,7 @@ func (a *GetStatusInfo) RefResponse() any { return &a.Response }
type GetStatusInfoRequest struct{} type GetStatusInfoRequest struct{}
// GetStatusInfoResponse contains the "out" args for the "GetStatusInfo" action. // GetStatusInfoResponse contains the "out" args for the "GetStatusInfo" action.
type GetStatusInfoResponse struct{ type GetStatusInfoResponse struct {
NewConnectionStatus string NewConnectionStatus string
NewLastConnectionError string NewLastConnectionError string
NewUptime pkg2.UI4 NewUptime pkg2.UI4
@ -500,7 +551,7 @@ type GetStatusInfoResponse struct{
// GetUserName provides request and response for the action. // GetUserName provides request and response for the action.
// //
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
type GetUserName struct{ type GetUserName struct {
Request GetUserNameRequest Request GetUserNameRequest
Response GetUserNameResponse Response GetUserNameResponse
} }
@ -509,10 +560,13 @@ var _ pkg1.Action = &GetUserName{}
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetUserName) ServiceType() string { return ServiceType } func (a *GetUserName) ServiceType() string { return ServiceType }
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action. // ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetUserName) ActionName() string { return "GetUserName" } func (a *GetUserName) ActionName() string { return "GetUserName" }
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetUserName) RefRequest() any { return &a.Request } func (a *GetUserName) RefRequest() any { return &a.Request }
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetUserName) RefResponse() any { return &a.Response } func (a *GetUserName) RefResponse() any { return &a.Response }
@ -520,14 +574,14 @@ func (a *GetUserName) RefResponse() any { return &a.Response }
type GetUserNameRequest struct{} type GetUserNameRequest struct{}
// GetUserNameResponse contains the "out" args for the "GetUserName" action. // GetUserNameResponse contains the "out" args for the "GetUserName" action.
type GetUserNameResponse struct{ type GetUserNameResponse struct {
NewUserName string NewUserName string
} }
// GetWarnDisconnectDelay provides request and response for the action. // GetWarnDisconnectDelay provides request and response for the action.
// //
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
type GetWarnDisconnectDelay struct{ type GetWarnDisconnectDelay struct {
Request GetWarnDisconnectDelayRequest Request GetWarnDisconnectDelayRequest
Response GetWarnDisconnectDelayResponse Response GetWarnDisconnectDelayResponse
} }
@ -536,10 +590,13 @@ var _ pkg1.Action = &GetWarnDisconnectDelay{}
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetWarnDisconnectDelay) ServiceType() string { return ServiceType } func (a *GetWarnDisconnectDelay) ServiceType() string { return ServiceType }
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action. // ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetWarnDisconnectDelay) ActionName() string { return "GetWarnDisconnectDelay" } func (a *GetWarnDisconnectDelay) ActionName() string { return "GetWarnDisconnectDelay" }
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetWarnDisconnectDelay) RefRequest() any { return &a.Request } func (a *GetWarnDisconnectDelay) RefRequest() any { return &a.Request }
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *GetWarnDisconnectDelay) RefResponse() any { return &a.Response } func (a *GetWarnDisconnectDelay) RefResponse() any { return &a.Response }
@ -547,14 +604,14 @@ func (a *GetWarnDisconnectDelay) RefResponse() any { return &a.Response }
type GetWarnDisconnectDelayRequest struct{} type GetWarnDisconnectDelayRequest struct{}
// GetWarnDisconnectDelayResponse contains the "out" args for the "GetWarnDisconnectDelay" action. // GetWarnDisconnectDelayResponse contains the "out" args for the "GetWarnDisconnectDelay" action.
type GetWarnDisconnectDelayResponse struct{ type GetWarnDisconnectDelayResponse struct {
NewWarnDisconnectDelay pkg2.UI4 NewWarnDisconnectDelay pkg2.UI4
} }
// RequestConnection provides request and response for the action. // RequestConnection provides request and response for the action.
// //
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
type RequestConnection struct{ type RequestConnection struct {
Request RequestConnectionRequest Request RequestConnectionRequest
Response RequestConnectionResponse Response RequestConnectionResponse
} }
@ -563,10 +620,13 @@ var _ pkg1.Action = &RequestConnection{}
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *RequestConnection) ServiceType() string { return ServiceType } func (a *RequestConnection) ServiceType() string { return ServiceType }
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action. // ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *RequestConnection) ActionName() string { return "RequestConnection" } func (a *RequestConnection) ActionName() string { return "RequestConnection" }
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *RequestConnection) RefRequest() any { return &a.Request } func (a *RequestConnection) RefRequest() any { return &a.Request }
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *RequestConnection) RefResponse() any { return &a.Response } func (a *RequestConnection) RefResponse() any { return &a.Response }
@ -579,7 +639,7 @@ type RequestConnectionResponse struct{}
// RequestTermination provides request and response for the action. // RequestTermination provides request and response for the action.
// //
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
type RequestTermination struct{ type RequestTermination struct {
Request RequestTerminationRequest Request RequestTerminationRequest
Response RequestTerminationResponse Response RequestTerminationResponse
} }
@ -588,10 +648,13 @@ var _ pkg1.Action = &RequestTermination{}
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *RequestTermination) ServiceType() string { return ServiceType } func (a *RequestTermination) ServiceType() string { return ServiceType }
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action. // ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *RequestTermination) ActionName() string { return "RequestTermination" } func (a *RequestTermination) ActionName() string { return "RequestTermination" }
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *RequestTermination) RefRequest() any { return &a.Request } func (a *RequestTermination) RefRequest() any { return &a.Request }
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *RequestTermination) RefResponse() any { return &a.Response } func (a *RequestTermination) RefResponse() any { return &a.Response }
@ -604,7 +667,7 @@ type RequestTerminationResponse struct{}
// SetAutoDisconnectTime provides request and response for the action. // SetAutoDisconnectTime provides request and response for the action.
// //
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
type SetAutoDisconnectTime struct{ type SetAutoDisconnectTime struct {
Request SetAutoDisconnectTimeRequest Request SetAutoDisconnectTimeRequest
Response SetAutoDisconnectTimeResponse Response SetAutoDisconnectTimeResponse
} }
@ -613,15 +676,18 @@ var _ pkg1.Action = &SetAutoDisconnectTime{}
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *SetAutoDisconnectTime) ServiceType() string { return ServiceType } func (a *SetAutoDisconnectTime) ServiceType() string { return ServiceType }
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action. // ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *SetAutoDisconnectTime) ActionName() string { return "SetAutoDisconnectTime" } func (a *SetAutoDisconnectTime) ActionName() string { return "SetAutoDisconnectTime" }
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *SetAutoDisconnectTime) RefRequest() any { return &a.Request } func (a *SetAutoDisconnectTime) RefRequest() any { return &a.Request }
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *SetAutoDisconnectTime) RefResponse() any { return &a.Response } func (a *SetAutoDisconnectTime) RefResponse() any { return &a.Response }
// SetAutoDisconnectTimeRequest contains the "in" args for the "SetAutoDisconnectTime" action. // SetAutoDisconnectTimeRequest contains the "in" args for the "SetAutoDisconnectTime" action.
type SetAutoDisconnectTimeRequest struct{ type SetAutoDisconnectTimeRequest struct {
NewAutoDisconnectTime pkg2.UI4 NewAutoDisconnectTime pkg2.UI4
} }
@ -631,7 +697,7 @@ type SetAutoDisconnectTimeResponse struct{}
// SetConnectionType provides request and response for the action. // SetConnectionType provides request and response for the action.
// //
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
type SetConnectionType struct{ type SetConnectionType struct {
Request SetConnectionTypeRequest Request SetConnectionTypeRequest
Response SetConnectionTypeResponse Response SetConnectionTypeResponse
} }
@ -640,15 +706,18 @@ var _ pkg1.Action = &SetConnectionType{}
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *SetConnectionType) ServiceType() string { return ServiceType } func (a *SetConnectionType) ServiceType() string { return ServiceType }
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action. // ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *SetConnectionType) ActionName() string { return "SetConnectionType" } func (a *SetConnectionType) ActionName() string { return "SetConnectionType" }
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *SetConnectionType) RefRequest() any { return &a.Request } func (a *SetConnectionType) RefRequest() any { return &a.Request }
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *SetConnectionType) RefResponse() any { return &a.Response } func (a *SetConnectionType) RefResponse() any { return &a.Response }
// SetConnectionTypeRequest contains the "in" args for the "SetConnectionType" action. // SetConnectionTypeRequest contains the "in" args for the "SetConnectionType" action.
type SetConnectionTypeRequest struct{ type SetConnectionTypeRequest struct {
NewConnectionType string NewConnectionType string
} }
@ -658,7 +727,7 @@ type SetConnectionTypeResponse struct{}
// SetIdleDisconnectTime provides request and response for the action. // SetIdleDisconnectTime provides request and response for the action.
// //
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
type SetIdleDisconnectTime struct{ type SetIdleDisconnectTime struct {
Request SetIdleDisconnectTimeRequest Request SetIdleDisconnectTimeRequest
Response SetIdleDisconnectTimeResponse Response SetIdleDisconnectTimeResponse
} }
@ -667,15 +736,18 @@ var _ pkg1.Action = &SetIdleDisconnectTime{}
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *SetIdleDisconnectTime) ServiceType() string { return ServiceType } func (a *SetIdleDisconnectTime) ServiceType() string { return ServiceType }
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action. // ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *SetIdleDisconnectTime) ActionName() string { return "SetIdleDisconnectTime" } func (a *SetIdleDisconnectTime) ActionName() string { return "SetIdleDisconnectTime" }
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *SetIdleDisconnectTime) RefRequest() any { return &a.Request } func (a *SetIdleDisconnectTime) RefRequest() any { return &a.Request }
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *SetIdleDisconnectTime) RefResponse() any { return &a.Response } func (a *SetIdleDisconnectTime) RefResponse() any { return &a.Response }
// SetIdleDisconnectTimeRequest contains the "in" args for the "SetIdleDisconnectTime" action. // SetIdleDisconnectTimeRequest contains the "in" args for the "SetIdleDisconnectTime" action.
type SetIdleDisconnectTimeRequest struct{ type SetIdleDisconnectTimeRequest struct {
NewIdleDisconnectTime pkg2.UI4 NewIdleDisconnectTime pkg2.UI4
} }
@ -685,7 +757,7 @@ type SetIdleDisconnectTimeResponse struct{}
// SetWarnDisconnectDelay provides request and response for the action. // SetWarnDisconnectDelay provides request and response for the action.
// //
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
type SetWarnDisconnectDelay struct{ type SetWarnDisconnectDelay struct {
Request SetWarnDisconnectDelayRequest Request SetWarnDisconnectDelayRequest
Response SetWarnDisconnectDelayResponse Response SetWarnDisconnectDelayResponse
} }
@ -694,15 +766,18 @@ var _ pkg1.Action = &SetWarnDisconnectDelay{}
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action. // ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *SetWarnDisconnectDelay) ServiceType() string { return ServiceType } func (a *SetWarnDisconnectDelay) ServiceType() string { return ServiceType }
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action. // ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *SetWarnDisconnectDelay) ActionName() string { return "SetWarnDisconnectDelay" } func (a *SetWarnDisconnectDelay) ActionName() string { return "SetWarnDisconnectDelay" }
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *SetWarnDisconnectDelay) RefRequest() any { return &a.Request } func (a *SetWarnDisconnectDelay) RefRequest() any { return &a.Request }
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action. // RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
func (a *SetWarnDisconnectDelay) RefResponse() any { return &a.Response } func (a *SetWarnDisconnectDelay) RefResponse() any { return &a.Response }
// SetWarnDisconnectDelayRequest contains the "in" args for the "SetWarnDisconnectDelay" action. // SetWarnDisconnectDelayRequest contains the "in" args for the "SetWarnDisconnectDelay" action.
type SetWarnDisconnectDelayRequest struct{ type SetWarnDisconnectDelayRequest struct {
NewWarnDisconnectDelay pkg2.UI4 NewWarnDisconnectDelay pkg2.UI4
} }