Format generated source code.
This commit is contained in:
parent
dd6d6a16d3
commit
6617fb84e1
@ -1,10 +1,13 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/xml"
|
||||
"errors"
|
||||
"flag"
|
||||
"fmt"
|
||||
"go/format"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"reflect"
|
||||
@ -24,6 +27,7 @@ import (
|
||||
)
|
||||
|
||||
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.")
|
||||
srvManifests = flag.String("srv_manifests", "", "Path to srvmanifests.toml")
|
||||
srvTemplate = flag.String("srv_template", "", "Path to srv.gotemplate.")
|
||||
@ -159,13 +163,8 @@ func processService(
|
||||
return err
|
||||
}
|
||||
|
||||
outputPath := filepath.Join(outputDir, srvManifest.Package+".go")
|
||||
outFile, err := os.Create(outputPath)
|
||||
if err != nil {
|
||||
return fmt.Errorf("creating output service file %q: %w", outputPath, err)
|
||||
}
|
||||
defer outFile.Close()
|
||||
err = tmpl.ExecuteTemplate(outFile, "service", tmplArgs{
|
||||
buf := &bytes.Buffer{}
|
||||
err = tmpl.ExecuteTemplate(buf, "service", tmplArgs{
|
||||
Manifest: srvManifest,
|
||||
Imps: imps,
|
||||
SCPD: sd,
|
||||
@ -173,8 +172,18 @@ func processService(
|
||||
if err != nil {
|
||||
return fmt.Errorf("executing srv_template: %w", err)
|
||||
}
|
||||
if err := outFile.Close(); err != nil {
|
||||
return fmt.Errorf("closing output service file %q: %w", outputPath, err)
|
||||
src := buf.Bytes()
|
||||
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
|
||||
|
@ -2,8 +2,8 @@
|
||||
package wanpppconn1
|
||||
|
||||
import (
|
||||
pkg1 "github.com/huin/goupnp/v2alpha/soap"
|
||||
pkg2 "github.com/huin/goupnp/v2alpha/soap/types"
|
||||
pkg1 "github.com/huin/goupnp/v2alpha/soap"
|
||||
pkg2 "github.com/huin/goupnp/v2alpha/soap/types"
|
||||
)
|
||||
|
||||
const ServiceType = "urn:schemas-upnp-org:service:WANPPPConnection:1"
|
||||
@ -11,32 +11,35 @@ const ServiceType = "urn:schemas-upnp-org:service:WANPPPConnection:1"
|
||||
// AddPortMapping provides request and response for the action.
|
||||
//
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
|
||||
type AddPortMapping struct{
|
||||
Request AddPortMappingRequest
|
||||
Response AddPortMappingResponse
|
||||
type AddPortMapping struct {
|
||||
Request AddPortMappingRequest
|
||||
Response AddPortMappingResponse
|
||||
}
|
||||
|
||||
var _ pkg1.Action = &AddPortMapping{}
|
||||
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *AddPortMapping) ServiceType() string { return ServiceType }
|
||||
|
||||
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *AddPortMapping) ActionName() string { return "AddPortMapping" }
|
||||
|
||||
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *AddPortMapping) RefRequest() any { return &a.Request }
|
||||
|
||||
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *AddPortMapping) RefResponse() any { return &a.Response }
|
||||
|
||||
// AddPortMappingRequest contains the "in" args for the "AddPortMapping" action.
|
||||
type AddPortMappingRequest struct{
|
||||
NewRemoteHost string
|
||||
NewExternalPort pkg2.UI2
|
||||
NewProtocol string
|
||||
NewInternalPort pkg2.UI2
|
||||
NewInternalClient string
|
||||
NewEnabled pkg2.Boolean
|
||||
NewPortMappingDescription string
|
||||
NewLeaseDuration pkg2.UI4
|
||||
type AddPortMappingRequest struct {
|
||||
NewRemoteHost string
|
||||
NewExternalPort pkg2.UI2
|
||||
NewProtocol string
|
||||
NewInternalPort pkg2.UI2
|
||||
NewInternalClient string
|
||||
NewEnabled pkg2.Boolean
|
||||
NewPortMappingDescription string
|
||||
NewLeaseDuration pkg2.UI4
|
||||
}
|
||||
|
||||
// AddPortMappingResponse contains the "out" args for the "AddPortMapping" action.
|
||||
@ -45,26 +48,29 @@ type AddPortMappingResponse struct{}
|
||||
// ConfigureConnection provides request and response for the action.
|
||||
//
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
|
||||
type ConfigureConnection struct{
|
||||
Request ConfigureConnectionRequest
|
||||
Response ConfigureConnectionResponse
|
||||
type ConfigureConnection struct {
|
||||
Request ConfigureConnectionRequest
|
||||
Response ConfigureConnectionResponse
|
||||
}
|
||||
|
||||
var _ pkg1.Action = &ConfigureConnection{}
|
||||
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *ConfigureConnection) ServiceType() string { return ServiceType }
|
||||
|
||||
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *ConfigureConnection) ActionName() string { return "ConfigureConnection" }
|
||||
|
||||
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *ConfigureConnection) RefRequest() any { return &a.Request }
|
||||
|
||||
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *ConfigureConnection) RefResponse() any { return &a.Response }
|
||||
|
||||
// ConfigureConnectionRequest contains the "in" args for the "ConfigureConnection" action.
|
||||
type ConfigureConnectionRequest struct{
|
||||
NewUserName string
|
||||
NewPassword string
|
||||
type ConfigureConnectionRequest struct {
|
||||
NewUserName string
|
||||
NewPassword string
|
||||
}
|
||||
|
||||
// ConfigureConnectionResponse contains the "out" args for the "ConfigureConnection" action.
|
||||
@ -73,27 +79,30 @@ type ConfigureConnectionResponse struct{}
|
||||
// DeletePortMapping provides request and response for the action.
|
||||
//
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
|
||||
type DeletePortMapping struct{
|
||||
Request DeletePortMappingRequest
|
||||
Response DeletePortMappingResponse
|
||||
type DeletePortMapping struct {
|
||||
Request DeletePortMappingRequest
|
||||
Response DeletePortMappingResponse
|
||||
}
|
||||
|
||||
var _ pkg1.Action = &DeletePortMapping{}
|
||||
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *DeletePortMapping) ServiceType() string { return ServiceType }
|
||||
|
||||
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *DeletePortMapping) ActionName() string { return "DeletePortMapping" }
|
||||
|
||||
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *DeletePortMapping) RefRequest() any { return &a.Request }
|
||||
|
||||
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *DeletePortMapping) RefResponse() any { return &a.Response }
|
||||
|
||||
// DeletePortMappingRequest contains the "in" args for the "DeletePortMapping" action.
|
||||
type DeletePortMappingRequest struct{
|
||||
NewRemoteHost string
|
||||
NewExternalPort pkg2.UI2
|
||||
NewProtocol string
|
||||
type DeletePortMappingRequest struct {
|
||||
NewRemoteHost string
|
||||
NewExternalPort pkg2.UI2
|
||||
NewProtocol string
|
||||
}
|
||||
|
||||
// DeletePortMappingResponse contains the "out" args for the "DeletePortMapping" action.
|
||||
@ -102,19 +111,22 @@ type DeletePortMappingResponse struct{}
|
||||
// ForceTermination provides request and response for the action.
|
||||
//
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
|
||||
type ForceTermination struct{
|
||||
Request ForceTerminationRequest
|
||||
Response ForceTerminationResponse
|
||||
type ForceTermination struct {
|
||||
Request ForceTerminationRequest
|
||||
Response ForceTerminationResponse
|
||||
}
|
||||
|
||||
var _ pkg1.Action = &ForceTermination{}
|
||||
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *ForceTermination) ServiceType() string { return ServiceType }
|
||||
|
||||
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *ForceTermination) ActionName() string { return "ForceTermination" }
|
||||
|
||||
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *ForceTermination) RefRequest() any { return &a.Request }
|
||||
|
||||
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *ForceTermination) RefResponse() any { return &a.Response }
|
||||
|
||||
@ -127,19 +139,22 @@ type ForceTerminationResponse struct{}
|
||||
// GetAutoDisconnectTime provides request and response for the action.
|
||||
//
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
|
||||
type GetAutoDisconnectTime struct{
|
||||
Request GetAutoDisconnectTimeRequest
|
||||
Response GetAutoDisconnectTimeResponse
|
||||
type GetAutoDisconnectTime struct {
|
||||
Request GetAutoDisconnectTimeRequest
|
||||
Response GetAutoDisconnectTimeResponse
|
||||
}
|
||||
|
||||
var _ pkg1.Action = &GetAutoDisconnectTime{}
|
||||
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetAutoDisconnectTime) ServiceType() string { return ServiceType }
|
||||
|
||||
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetAutoDisconnectTime) ActionName() string { return "GetAutoDisconnectTime" }
|
||||
|
||||
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetAutoDisconnectTime) RefRequest() any { return &a.Request }
|
||||
|
||||
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetAutoDisconnectTime) RefResponse() any { return &a.Response }
|
||||
|
||||
@ -147,26 +162,29 @@ func (a *GetAutoDisconnectTime) RefResponse() any { return &a.Response }
|
||||
type GetAutoDisconnectTimeRequest struct{}
|
||||
|
||||
// GetAutoDisconnectTimeResponse contains the "out" args for the "GetAutoDisconnectTime" action.
|
||||
type GetAutoDisconnectTimeResponse struct{
|
||||
NewAutoDisconnectTime pkg2.UI4
|
||||
type GetAutoDisconnectTimeResponse struct {
|
||||
NewAutoDisconnectTime pkg2.UI4
|
||||
}
|
||||
|
||||
// GetConnectionTypeInfo provides request and response for the action.
|
||||
//
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
|
||||
type GetConnectionTypeInfo struct{
|
||||
Request GetConnectionTypeInfoRequest
|
||||
Response GetConnectionTypeInfoResponse
|
||||
type GetConnectionTypeInfo struct {
|
||||
Request GetConnectionTypeInfoRequest
|
||||
Response GetConnectionTypeInfoResponse
|
||||
}
|
||||
|
||||
var _ pkg1.Action = &GetConnectionTypeInfo{}
|
||||
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetConnectionTypeInfo) ServiceType() string { return ServiceType }
|
||||
|
||||
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetConnectionTypeInfo) ActionName() string { return "GetConnectionTypeInfo" }
|
||||
|
||||
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetConnectionTypeInfo) RefRequest() any { return &a.Request }
|
||||
|
||||
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetConnectionTypeInfo) RefResponse() any { return &a.Response }
|
||||
|
||||
@ -174,27 +192,30 @@ func (a *GetConnectionTypeInfo) RefResponse() any { return &a.Response }
|
||||
type GetConnectionTypeInfoRequest struct{}
|
||||
|
||||
// GetConnectionTypeInfoResponse contains the "out" args for the "GetConnectionTypeInfo" action.
|
||||
type GetConnectionTypeInfoResponse struct{
|
||||
NewConnectionType string
|
||||
NewPossibleConnectionTypes string
|
||||
type GetConnectionTypeInfoResponse struct {
|
||||
NewConnectionType string
|
||||
NewPossibleConnectionTypes string
|
||||
}
|
||||
|
||||
// GetExternalIPAddress provides request and response for the action.
|
||||
//
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
|
||||
type GetExternalIPAddress struct{
|
||||
Request GetExternalIPAddressRequest
|
||||
Response GetExternalIPAddressResponse
|
||||
type GetExternalIPAddress struct {
|
||||
Request GetExternalIPAddressRequest
|
||||
Response GetExternalIPAddressResponse
|
||||
}
|
||||
|
||||
var _ pkg1.Action = &GetExternalIPAddress{}
|
||||
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetExternalIPAddress) ServiceType() string { return ServiceType }
|
||||
|
||||
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetExternalIPAddress) ActionName() string { return "GetExternalIPAddress" }
|
||||
|
||||
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetExternalIPAddress) RefRequest() any { return &a.Request }
|
||||
|
||||
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetExternalIPAddress) RefResponse() any { return &a.Response }
|
||||
|
||||
@ -202,62 +223,68 @@ func (a *GetExternalIPAddress) RefResponse() any { return &a.Response }
|
||||
type GetExternalIPAddressRequest struct{}
|
||||
|
||||
// GetExternalIPAddressResponse contains the "out" args for the "GetExternalIPAddress" action.
|
||||
type GetExternalIPAddressResponse struct{
|
||||
NewExternalIPAddress string
|
||||
type GetExternalIPAddressResponse struct {
|
||||
NewExternalIPAddress string
|
||||
}
|
||||
|
||||
// GetGenericPortMappingEntry provides request and response for the action.
|
||||
//
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
|
||||
type GetGenericPortMappingEntry struct{
|
||||
Request GetGenericPortMappingEntryRequest
|
||||
Response GetGenericPortMappingEntryResponse
|
||||
type GetGenericPortMappingEntry struct {
|
||||
Request GetGenericPortMappingEntryRequest
|
||||
Response GetGenericPortMappingEntryResponse
|
||||
}
|
||||
|
||||
var _ pkg1.Action = &GetGenericPortMappingEntry{}
|
||||
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetGenericPortMappingEntry) ServiceType() string { return ServiceType }
|
||||
|
||||
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetGenericPortMappingEntry) ActionName() string { return "GetGenericPortMappingEntry" }
|
||||
|
||||
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetGenericPortMappingEntry) RefRequest() any { return &a.Request }
|
||||
|
||||
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetGenericPortMappingEntry) RefResponse() any { return &a.Response }
|
||||
|
||||
// GetGenericPortMappingEntryRequest contains the "in" args for the "GetGenericPortMappingEntry" action.
|
||||
type GetGenericPortMappingEntryRequest struct{
|
||||
NewPortMappingIndex pkg2.UI2
|
||||
type GetGenericPortMappingEntryRequest struct {
|
||||
NewPortMappingIndex pkg2.UI2
|
||||
}
|
||||
|
||||
// GetGenericPortMappingEntryResponse contains the "out" args for the "GetGenericPortMappingEntry" action.
|
||||
type GetGenericPortMappingEntryResponse struct{
|
||||
NewRemoteHost string
|
||||
NewExternalPort pkg2.UI2
|
||||
NewProtocol string
|
||||
NewInternalPort pkg2.UI2
|
||||
NewInternalClient string
|
||||
NewEnabled pkg2.Boolean
|
||||
NewPortMappingDescription string
|
||||
NewLeaseDuration pkg2.UI4
|
||||
type GetGenericPortMappingEntryResponse struct {
|
||||
NewRemoteHost string
|
||||
NewExternalPort pkg2.UI2
|
||||
NewProtocol string
|
||||
NewInternalPort pkg2.UI2
|
||||
NewInternalClient string
|
||||
NewEnabled pkg2.Boolean
|
||||
NewPortMappingDescription string
|
||||
NewLeaseDuration pkg2.UI4
|
||||
}
|
||||
|
||||
// GetIdleDisconnectTime provides request and response for the action.
|
||||
//
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
|
||||
type GetIdleDisconnectTime struct{
|
||||
Request GetIdleDisconnectTimeRequest
|
||||
Response GetIdleDisconnectTimeResponse
|
||||
type GetIdleDisconnectTime struct {
|
||||
Request GetIdleDisconnectTimeRequest
|
||||
Response GetIdleDisconnectTimeResponse
|
||||
}
|
||||
|
||||
var _ pkg1.Action = &GetIdleDisconnectTime{}
|
||||
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetIdleDisconnectTime) ServiceType() string { return ServiceType }
|
||||
|
||||
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetIdleDisconnectTime) ActionName() string { return "GetIdleDisconnectTime" }
|
||||
|
||||
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetIdleDisconnectTime) RefRequest() any { return &a.Request }
|
||||
|
||||
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetIdleDisconnectTime) RefResponse() any { return &a.Response }
|
||||
|
||||
@ -265,26 +292,29 @@ func (a *GetIdleDisconnectTime) RefResponse() any { return &a.Response }
|
||||
type GetIdleDisconnectTimeRequest struct{}
|
||||
|
||||
// GetIdleDisconnectTimeResponse contains the "out" args for the "GetIdleDisconnectTime" action.
|
||||
type GetIdleDisconnectTimeResponse struct{
|
||||
NewIdleDisconnectTime pkg2.UI4
|
||||
type GetIdleDisconnectTimeResponse struct {
|
||||
NewIdleDisconnectTime pkg2.UI4
|
||||
}
|
||||
|
||||
// GetLinkLayerMaxBitRates provides request and response for the action.
|
||||
//
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
|
||||
type GetLinkLayerMaxBitRates struct{
|
||||
Request GetLinkLayerMaxBitRatesRequest
|
||||
Response GetLinkLayerMaxBitRatesResponse
|
||||
type GetLinkLayerMaxBitRates struct {
|
||||
Request GetLinkLayerMaxBitRatesRequest
|
||||
Response GetLinkLayerMaxBitRatesResponse
|
||||
}
|
||||
|
||||
var _ pkg1.Action = &GetLinkLayerMaxBitRates{}
|
||||
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetLinkLayerMaxBitRates) ServiceType() string { return ServiceType }
|
||||
|
||||
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetLinkLayerMaxBitRates) ActionName() string { return "GetLinkLayerMaxBitRates" }
|
||||
|
||||
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetLinkLayerMaxBitRates) RefRequest() any { return &a.Request }
|
||||
|
||||
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetLinkLayerMaxBitRates) RefResponse() any { return &a.Response }
|
||||
|
||||
@ -292,27 +322,30 @@ func (a *GetLinkLayerMaxBitRates) RefResponse() any { return &a.Response }
|
||||
type GetLinkLayerMaxBitRatesRequest struct{}
|
||||
|
||||
// GetLinkLayerMaxBitRatesResponse contains the "out" args for the "GetLinkLayerMaxBitRates" action.
|
||||
type GetLinkLayerMaxBitRatesResponse struct{
|
||||
NewUpstreamMaxBitRate pkg2.UI4
|
||||
NewDownstreamMaxBitRate pkg2.UI4
|
||||
type GetLinkLayerMaxBitRatesResponse struct {
|
||||
NewUpstreamMaxBitRate pkg2.UI4
|
||||
NewDownstreamMaxBitRate pkg2.UI4
|
||||
}
|
||||
|
||||
// GetNATRSIPStatus provides request and response for the action.
|
||||
//
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
|
||||
type GetNATRSIPStatus struct{
|
||||
Request GetNATRSIPStatusRequest
|
||||
Response GetNATRSIPStatusResponse
|
||||
type GetNATRSIPStatus struct {
|
||||
Request GetNATRSIPStatusRequest
|
||||
Response GetNATRSIPStatusResponse
|
||||
}
|
||||
|
||||
var _ pkg1.Action = &GetNATRSIPStatus{}
|
||||
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetNATRSIPStatus) ServiceType() string { return ServiceType }
|
||||
|
||||
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetNATRSIPStatus) ActionName() string { return "GetNATRSIPStatus" }
|
||||
|
||||
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetNATRSIPStatus) RefRequest() any { return &a.Request }
|
||||
|
||||
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetNATRSIPStatus) RefResponse() any { return &a.Response }
|
||||
|
||||
@ -320,27 +353,30 @@ func (a *GetNATRSIPStatus) RefResponse() any { return &a.Response }
|
||||
type GetNATRSIPStatusRequest struct{}
|
||||
|
||||
// GetNATRSIPStatusResponse contains the "out" args for the "GetNATRSIPStatus" action.
|
||||
type GetNATRSIPStatusResponse struct{
|
||||
NewRSIPAvailable pkg2.Boolean
|
||||
NewNATEnabled pkg2.Boolean
|
||||
type GetNATRSIPStatusResponse struct {
|
||||
NewRSIPAvailable pkg2.Boolean
|
||||
NewNATEnabled pkg2.Boolean
|
||||
}
|
||||
|
||||
// GetPPPAuthenticationProtocol provides request and response for the action.
|
||||
//
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
|
||||
type GetPPPAuthenticationProtocol struct{
|
||||
Request GetPPPAuthenticationProtocolRequest
|
||||
Response GetPPPAuthenticationProtocolResponse
|
||||
type GetPPPAuthenticationProtocol struct {
|
||||
Request GetPPPAuthenticationProtocolRequest
|
||||
Response GetPPPAuthenticationProtocolResponse
|
||||
}
|
||||
|
||||
var _ pkg1.Action = &GetPPPAuthenticationProtocol{}
|
||||
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetPPPAuthenticationProtocol) ServiceType() string { return ServiceType }
|
||||
|
||||
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetPPPAuthenticationProtocol) ActionName() string { return "GetPPPAuthenticationProtocol" }
|
||||
|
||||
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetPPPAuthenticationProtocol) RefRequest() any { return &a.Request }
|
||||
|
||||
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetPPPAuthenticationProtocol) RefResponse() any { return &a.Response }
|
||||
|
||||
@ -348,26 +384,29 @@ func (a *GetPPPAuthenticationProtocol) RefResponse() any { return &a.Response }
|
||||
type GetPPPAuthenticationProtocolRequest struct{}
|
||||
|
||||
// GetPPPAuthenticationProtocolResponse contains the "out" args for the "GetPPPAuthenticationProtocol" action.
|
||||
type GetPPPAuthenticationProtocolResponse struct{
|
||||
NewPPPAuthenticationProtocol string
|
||||
type GetPPPAuthenticationProtocolResponse struct {
|
||||
NewPPPAuthenticationProtocol string
|
||||
}
|
||||
|
||||
// GetPPPCompressionProtocol provides request and response for the action.
|
||||
//
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
|
||||
type GetPPPCompressionProtocol struct{
|
||||
Request GetPPPCompressionProtocolRequest
|
||||
Response GetPPPCompressionProtocolResponse
|
||||
type GetPPPCompressionProtocol struct {
|
||||
Request GetPPPCompressionProtocolRequest
|
||||
Response GetPPPCompressionProtocolResponse
|
||||
}
|
||||
|
||||
var _ pkg1.Action = &GetPPPCompressionProtocol{}
|
||||
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetPPPCompressionProtocol) ServiceType() string { return ServiceType }
|
||||
|
||||
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetPPPCompressionProtocol) ActionName() string { return "GetPPPCompressionProtocol" }
|
||||
|
||||
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetPPPCompressionProtocol) RefRequest() any { return &a.Request }
|
||||
|
||||
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetPPPCompressionProtocol) RefResponse() any { return &a.Response }
|
||||
|
||||
@ -375,26 +414,29 @@ func (a *GetPPPCompressionProtocol) RefResponse() any { return &a.Response }
|
||||
type GetPPPCompressionProtocolRequest struct{}
|
||||
|
||||
// GetPPPCompressionProtocolResponse contains the "out" args for the "GetPPPCompressionProtocol" action.
|
||||
type GetPPPCompressionProtocolResponse struct{
|
||||
NewPPPCompressionProtocol string
|
||||
type GetPPPCompressionProtocolResponse struct {
|
||||
NewPPPCompressionProtocol string
|
||||
}
|
||||
|
||||
// GetPPPEncryptionProtocol provides request and response for the action.
|
||||
//
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
|
||||
type GetPPPEncryptionProtocol struct{
|
||||
Request GetPPPEncryptionProtocolRequest
|
||||
Response GetPPPEncryptionProtocolResponse
|
||||
type GetPPPEncryptionProtocol struct {
|
||||
Request GetPPPEncryptionProtocolRequest
|
||||
Response GetPPPEncryptionProtocolResponse
|
||||
}
|
||||
|
||||
var _ pkg1.Action = &GetPPPEncryptionProtocol{}
|
||||
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetPPPEncryptionProtocol) ServiceType() string { return ServiceType }
|
||||
|
||||
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetPPPEncryptionProtocol) ActionName() string { return "GetPPPEncryptionProtocol" }
|
||||
|
||||
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetPPPEncryptionProtocol) RefRequest() any { return &a.Request }
|
||||
|
||||
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetPPPEncryptionProtocol) RefResponse() any { return &a.Response }
|
||||
|
||||
@ -402,26 +444,29 @@ func (a *GetPPPEncryptionProtocol) RefResponse() any { return &a.Response }
|
||||
type GetPPPEncryptionProtocolRequest struct{}
|
||||
|
||||
// GetPPPEncryptionProtocolResponse contains the "out" args for the "GetPPPEncryptionProtocol" action.
|
||||
type GetPPPEncryptionProtocolResponse struct{
|
||||
NewPPPEncryptionProtocol string
|
||||
type GetPPPEncryptionProtocolResponse struct {
|
||||
NewPPPEncryptionProtocol string
|
||||
}
|
||||
|
||||
// GetPassword provides request and response for the action.
|
||||
//
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
|
||||
type GetPassword struct{
|
||||
Request GetPasswordRequest
|
||||
Response GetPasswordResponse
|
||||
type GetPassword struct {
|
||||
Request GetPasswordRequest
|
||||
Response GetPasswordResponse
|
||||
}
|
||||
|
||||
var _ pkg1.Action = &GetPassword{}
|
||||
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetPassword) ServiceType() string { return ServiceType }
|
||||
|
||||
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetPassword) ActionName() string { return "GetPassword" }
|
||||
|
||||
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetPassword) RefRequest() any { return &a.Request }
|
||||
|
||||
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetPassword) RefResponse() any { return &a.Response }
|
||||
|
||||
@ -429,61 +474,67 @@ func (a *GetPassword) RefResponse() any { return &a.Response }
|
||||
type GetPasswordRequest struct{}
|
||||
|
||||
// GetPasswordResponse contains the "out" args for the "GetPassword" action.
|
||||
type GetPasswordResponse struct{
|
||||
NewPassword string
|
||||
type GetPasswordResponse struct {
|
||||
NewPassword string
|
||||
}
|
||||
|
||||
// GetSpecificPortMappingEntry provides request and response for the action.
|
||||
//
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
|
||||
type GetSpecificPortMappingEntry struct{
|
||||
Request GetSpecificPortMappingEntryRequest
|
||||
Response GetSpecificPortMappingEntryResponse
|
||||
type GetSpecificPortMappingEntry struct {
|
||||
Request GetSpecificPortMappingEntryRequest
|
||||
Response GetSpecificPortMappingEntryResponse
|
||||
}
|
||||
|
||||
var _ pkg1.Action = &GetSpecificPortMappingEntry{}
|
||||
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetSpecificPortMappingEntry) ServiceType() string { return ServiceType }
|
||||
|
||||
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetSpecificPortMappingEntry) ActionName() string { return "GetSpecificPortMappingEntry" }
|
||||
|
||||
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetSpecificPortMappingEntry) RefRequest() any { return &a.Request }
|
||||
|
||||
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetSpecificPortMappingEntry) RefResponse() any { return &a.Response }
|
||||
|
||||
// GetSpecificPortMappingEntryRequest contains the "in" args for the "GetSpecificPortMappingEntry" action.
|
||||
type GetSpecificPortMappingEntryRequest struct{
|
||||
NewRemoteHost string
|
||||
NewExternalPort pkg2.UI2
|
||||
NewProtocol string
|
||||
type GetSpecificPortMappingEntryRequest struct {
|
||||
NewRemoteHost string
|
||||
NewExternalPort pkg2.UI2
|
||||
NewProtocol string
|
||||
}
|
||||
|
||||
// GetSpecificPortMappingEntryResponse contains the "out" args for the "GetSpecificPortMappingEntry" action.
|
||||
type GetSpecificPortMappingEntryResponse struct{
|
||||
NewInternalPort pkg2.UI2
|
||||
NewInternalClient string
|
||||
NewEnabled pkg2.Boolean
|
||||
NewPortMappingDescription string
|
||||
NewLeaseDuration pkg2.UI4
|
||||
type GetSpecificPortMappingEntryResponse struct {
|
||||
NewInternalPort pkg2.UI2
|
||||
NewInternalClient string
|
||||
NewEnabled pkg2.Boolean
|
||||
NewPortMappingDescription string
|
||||
NewLeaseDuration pkg2.UI4
|
||||
}
|
||||
|
||||
// GetStatusInfo provides request and response for the action.
|
||||
//
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
|
||||
type GetStatusInfo struct{
|
||||
Request GetStatusInfoRequest
|
||||
Response GetStatusInfoResponse
|
||||
type GetStatusInfo struct {
|
||||
Request GetStatusInfoRequest
|
||||
Response GetStatusInfoResponse
|
||||
}
|
||||
|
||||
var _ pkg1.Action = &GetStatusInfo{}
|
||||
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetStatusInfo) ServiceType() string { return ServiceType }
|
||||
|
||||
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetStatusInfo) ActionName() string { return "GetStatusInfo" }
|
||||
|
||||
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetStatusInfo) RefRequest() any { return &a.Request }
|
||||
|
||||
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetStatusInfo) RefResponse() any { return &a.Response }
|
||||
|
||||
@ -491,28 +542,31 @@ func (a *GetStatusInfo) RefResponse() any { return &a.Response }
|
||||
type GetStatusInfoRequest struct{}
|
||||
|
||||
// GetStatusInfoResponse contains the "out" args for the "GetStatusInfo" action.
|
||||
type GetStatusInfoResponse struct{
|
||||
NewConnectionStatus string
|
||||
NewLastConnectionError string
|
||||
NewUptime pkg2.UI4
|
||||
type GetStatusInfoResponse struct {
|
||||
NewConnectionStatus string
|
||||
NewLastConnectionError string
|
||||
NewUptime pkg2.UI4
|
||||
}
|
||||
|
||||
// GetUserName provides request and response for the action.
|
||||
//
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
|
||||
type GetUserName struct{
|
||||
Request GetUserNameRequest
|
||||
Response GetUserNameResponse
|
||||
type GetUserName struct {
|
||||
Request GetUserNameRequest
|
||||
Response GetUserNameResponse
|
||||
}
|
||||
|
||||
var _ pkg1.Action = &GetUserName{}
|
||||
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetUserName) ServiceType() string { return ServiceType }
|
||||
|
||||
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetUserName) ActionName() string { return "GetUserName" }
|
||||
|
||||
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetUserName) RefRequest() any { return &a.Request }
|
||||
|
||||
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetUserName) RefResponse() any { return &a.Response }
|
||||
|
||||
@ -520,26 +574,29 @@ func (a *GetUserName) RefResponse() any { return &a.Response }
|
||||
type GetUserNameRequest struct{}
|
||||
|
||||
// GetUserNameResponse contains the "out" args for the "GetUserName" action.
|
||||
type GetUserNameResponse struct{
|
||||
NewUserName string
|
||||
type GetUserNameResponse struct {
|
||||
NewUserName string
|
||||
}
|
||||
|
||||
// GetWarnDisconnectDelay provides request and response for the action.
|
||||
//
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
|
||||
type GetWarnDisconnectDelay struct{
|
||||
Request GetWarnDisconnectDelayRequest
|
||||
Response GetWarnDisconnectDelayResponse
|
||||
type GetWarnDisconnectDelay struct {
|
||||
Request GetWarnDisconnectDelayRequest
|
||||
Response GetWarnDisconnectDelayResponse
|
||||
}
|
||||
|
||||
var _ pkg1.Action = &GetWarnDisconnectDelay{}
|
||||
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetWarnDisconnectDelay) ServiceType() string { return ServiceType }
|
||||
|
||||
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetWarnDisconnectDelay) ActionName() string { return "GetWarnDisconnectDelay" }
|
||||
|
||||
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetWarnDisconnectDelay) RefRequest() any { return &a.Request }
|
||||
|
||||
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *GetWarnDisconnectDelay) RefResponse() any { return &a.Response }
|
||||
|
||||
@ -547,26 +604,29 @@ func (a *GetWarnDisconnectDelay) RefResponse() any { return &a.Response }
|
||||
type GetWarnDisconnectDelayRequest struct{}
|
||||
|
||||
// GetWarnDisconnectDelayResponse contains the "out" args for the "GetWarnDisconnectDelay" action.
|
||||
type GetWarnDisconnectDelayResponse struct{
|
||||
NewWarnDisconnectDelay pkg2.UI4
|
||||
type GetWarnDisconnectDelayResponse struct {
|
||||
NewWarnDisconnectDelay pkg2.UI4
|
||||
}
|
||||
|
||||
// RequestConnection provides request and response for the action.
|
||||
//
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
|
||||
type RequestConnection struct{
|
||||
Request RequestConnectionRequest
|
||||
Response RequestConnectionResponse
|
||||
type RequestConnection struct {
|
||||
Request RequestConnectionRequest
|
||||
Response RequestConnectionResponse
|
||||
}
|
||||
|
||||
var _ pkg1.Action = &RequestConnection{}
|
||||
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *RequestConnection) ServiceType() string { return ServiceType }
|
||||
|
||||
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *RequestConnection) ActionName() string { return "RequestConnection" }
|
||||
|
||||
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *RequestConnection) RefRequest() any { return &a.Request }
|
||||
|
||||
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *RequestConnection) RefResponse() any { return &a.Response }
|
||||
|
||||
@ -579,19 +639,22 @@ type RequestConnectionResponse struct{}
|
||||
// RequestTermination provides request and response for the action.
|
||||
//
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
|
||||
type RequestTermination struct{
|
||||
Request RequestTerminationRequest
|
||||
Response RequestTerminationResponse
|
||||
type RequestTermination struct {
|
||||
Request RequestTerminationRequest
|
||||
Response RequestTerminationResponse
|
||||
}
|
||||
|
||||
var _ pkg1.Action = &RequestTermination{}
|
||||
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *RequestTermination) ServiceType() string { return ServiceType }
|
||||
|
||||
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *RequestTermination) ActionName() string { return "RequestTermination" }
|
||||
|
||||
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *RequestTermination) RefRequest() any { return &a.Request }
|
||||
|
||||
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *RequestTermination) RefResponse() any { return &a.Response }
|
||||
|
||||
@ -604,25 +667,28 @@ type RequestTerminationResponse struct{}
|
||||
// SetAutoDisconnectTime provides request and response for the action.
|
||||
//
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
|
||||
type SetAutoDisconnectTime struct{
|
||||
Request SetAutoDisconnectTimeRequest
|
||||
Response SetAutoDisconnectTimeResponse
|
||||
type SetAutoDisconnectTime struct {
|
||||
Request SetAutoDisconnectTimeRequest
|
||||
Response SetAutoDisconnectTimeResponse
|
||||
}
|
||||
|
||||
var _ pkg1.Action = &SetAutoDisconnectTime{}
|
||||
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *SetAutoDisconnectTime) ServiceType() string { return ServiceType }
|
||||
|
||||
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *SetAutoDisconnectTime) ActionName() string { return "SetAutoDisconnectTime" }
|
||||
|
||||
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *SetAutoDisconnectTime) RefRequest() any { return &a.Request }
|
||||
|
||||
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *SetAutoDisconnectTime) RefResponse() any { return &a.Response }
|
||||
|
||||
// SetAutoDisconnectTimeRequest contains the "in" args for the "SetAutoDisconnectTime" action.
|
||||
type SetAutoDisconnectTimeRequest struct{
|
||||
NewAutoDisconnectTime pkg2.UI4
|
||||
type SetAutoDisconnectTimeRequest struct {
|
||||
NewAutoDisconnectTime pkg2.UI4
|
||||
}
|
||||
|
||||
// SetAutoDisconnectTimeResponse contains the "out" args for the "SetAutoDisconnectTime" action.
|
||||
@ -631,25 +697,28 @@ type SetAutoDisconnectTimeResponse struct{}
|
||||
// SetConnectionType provides request and response for the action.
|
||||
//
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
|
||||
type SetConnectionType struct{
|
||||
Request SetConnectionTypeRequest
|
||||
Response SetConnectionTypeResponse
|
||||
type SetConnectionType struct {
|
||||
Request SetConnectionTypeRequest
|
||||
Response SetConnectionTypeResponse
|
||||
}
|
||||
|
||||
var _ pkg1.Action = &SetConnectionType{}
|
||||
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *SetConnectionType) ServiceType() string { return ServiceType }
|
||||
|
||||
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *SetConnectionType) ActionName() string { return "SetConnectionType" }
|
||||
|
||||
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *SetConnectionType) RefRequest() any { return &a.Request }
|
||||
|
||||
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *SetConnectionType) RefResponse() any { return &a.Response }
|
||||
|
||||
// SetConnectionTypeRequest contains the "in" args for the "SetConnectionType" action.
|
||||
type SetConnectionTypeRequest struct{
|
||||
NewConnectionType string
|
||||
type SetConnectionTypeRequest struct {
|
||||
NewConnectionType string
|
||||
}
|
||||
|
||||
// SetConnectionTypeResponse contains the "out" args for the "SetConnectionType" action.
|
||||
@ -658,25 +727,28 @@ type SetConnectionTypeResponse struct{}
|
||||
// SetIdleDisconnectTime provides request and response for the action.
|
||||
//
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
|
||||
type SetIdleDisconnectTime struct{
|
||||
Request SetIdleDisconnectTimeRequest
|
||||
Response SetIdleDisconnectTimeResponse
|
||||
type SetIdleDisconnectTime struct {
|
||||
Request SetIdleDisconnectTimeRequest
|
||||
Response SetIdleDisconnectTimeResponse
|
||||
}
|
||||
|
||||
var _ pkg1.Action = &SetIdleDisconnectTime{}
|
||||
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *SetIdleDisconnectTime) ServiceType() string { return ServiceType }
|
||||
|
||||
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *SetIdleDisconnectTime) ActionName() string { return "SetIdleDisconnectTime" }
|
||||
|
||||
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *SetIdleDisconnectTime) RefRequest() any { return &a.Request }
|
||||
|
||||
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *SetIdleDisconnectTime) RefResponse() any { return &a.Response }
|
||||
|
||||
// SetIdleDisconnectTimeRequest contains the "in" args for the "SetIdleDisconnectTime" action.
|
||||
type SetIdleDisconnectTimeRequest struct{
|
||||
NewIdleDisconnectTime pkg2.UI4
|
||||
type SetIdleDisconnectTimeRequest struct {
|
||||
NewIdleDisconnectTime pkg2.UI4
|
||||
}
|
||||
|
||||
// SetIdleDisconnectTimeResponse contains the "out" args for the "SetIdleDisconnectTime" action.
|
||||
@ -685,25 +757,28 @@ type SetIdleDisconnectTimeResponse struct{}
|
||||
// SetWarnDisconnectDelay provides request and response for the action.
|
||||
//
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action, self-describing the SOAP action.
|
||||
type SetWarnDisconnectDelay struct{
|
||||
Request SetWarnDisconnectDelayRequest
|
||||
Response SetWarnDisconnectDelayResponse
|
||||
type SetWarnDisconnectDelay struct {
|
||||
Request SetWarnDisconnectDelayRequest
|
||||
Response SetWarnDisconnectDelayResponse
|
||||
}
|
||||
|
||||
var _ pkg1.Action = &SetWarnDisconnectDelay{}
|
||||
|
||||
// ServiceType implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *SetWarnDisconnectDelay) ServiceType() string { return ServiceType }
|
||||
|
||||
// ActionName implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *SetWarnDisconnectDelay) ActionName() string { return "SetWarnDisconnectDelay" }
|
||||
|
||||
// RefRequest implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *SetWarnDisconnectDelay) RefRequest() any { return &a.Request }
|
||||
|
||||
// RefResponse implements "github.com/huin/goupnp/v2alpha/soap".Action.
|
||||
func (a *SetWarnDisconnectDelay) RefResponse() any { return &a.Response }
|
||||
|
||||
// SetWarnDisconnectDelayRequest contains the "in" args for the "SetWarnDisconnectDelay" action.
|
||||
type SetWarnDisconnectDelayRequest struct{
|
||||
NewWarnDisconnectDelay pkg2.UI4
|
||||
type SetWarnDisconnectDelayRequest struct {
|
||||
NewWarnDisconnectDelay pkg2.UI4
|
||||
}
|
||||
|
||||
// SetWarnDisconnectDelayResponse contains the "out" args for the "SetWarnDisconnectDelay" action.
|
||||
|
Loading…
Reference in New Issue
Block a user