Format generated source code.
This commit is contained in:
		| @@ -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 | ||||||
|   | |||||||
| @@ -2,8 +2,8 @@ | |||||||
| package wanpppconn1 | package wanpppconn1 | ||||||
|  |  | ||||||
| import ( | import ( | ||||||
|   pkg1 "github.com/huin/goupnp/v2alpha/soap" | 	pkg1 "github.com/huin/goupnp/v2alpha/soap" | ||||||
|   pkg2 "github.com/huin/goupnp/v2alpha/soap/types" | 	pkg2 "github.com/huin/goupnp/v2alpha/soap/types" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| const ServiceType = "urn:schemas-upnp-org:service:WANPPPConnection:1" | 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. | // 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 | ||||||
| } | } | ||||||
|  |  | ||||||
| var _ pkg1.Action = &AddPortMapping{} | 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 | ||||||
|   NewInternalPort pkg2.UI2 | 	NewInternalPort           pkg2.UI2 | ||||||
|   NewInternalClient string | 	NewInternalClient         string | ||||||
|   NewEnabled pkg2.Boolean | 	NewEnabled                pkg2.Boolean | ||||||
|   NewPortMappingDescription string | 	NewPortMappingDescription string | ||||||
|   NewLeaseDuration pkg2.UI4 | 	NewLeaseDuration          pkg2.UI4 | ||||||
| } | } | ||||||
|  |  | ||||||
| // AddPortMappingResponse contains the "out" args for the "AddPortMapping" action. | // AddPortMappingResponse contains the "out" args for the "AddPortMapping" action. | ||||||
| @@ -45,26 +48,29 @@ 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 | ||||||
| } | } | ||||||
|  |  | ||||||
| var _ pkg1.Action = &ConfigureConnection{} | 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 | ||||||
| } | } | ||||||
|  |  | ||||||
| // ConfigureConnectionResponse contains the "out" args for the "ConfigureConnection" action. | // ConfigureConnectionResponse contains the "out" args for the "ConfigureConnection" action. | ||||||
| @@ -73,27 +79,30 @@ 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 | ||||||
| } | } | ||||||
|  |  | ||||||
| var _ pkg1.Action = &DeletePortMapping{} | 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 | ||||||
| } | } | ||||||
|  |  | ||||||
| // DeletePortMappingResponse contains the "out" args for the "DeletePortMapping" action. | // DeletePortMappingResponse contains the "out" args for the "DeletePortMapping" action. | ||||||
| @@ -102,19 +111,22 @@ 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 | ||||||
| } | } | ||||||
|  |  | ||||||
| var _ pkg1.Action = &ForceTermination{} | 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,19 +139,22 @@ 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 | ||||||
| } | } | ||||||
|  |  | ||||||
| var _ pkg1.Action = &GetAutoDisconnectTime{} | 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,26 +162,29 @@ 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 | ||||||
| } | } | ||||||
|  |  | ||||||
| var _ pkg1.Action = &GetConnectionTypeInfo{} | 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,27 +192,30 @@ 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 | ||||||
| } | } | ||||||
|  |  | ||||||
| // 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 | ||||||
| } | } | ||||||
|  |  | ||||||
| var _ pkg1.Action = &GetExternalIPAddress{} | 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,62 +223,68 @@ 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 | ||||||
| } | } | ||||||
|  |  | ||||||
| var _ pkg1.Action = &GetGenericPortMappingEntry{} | 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 | ||||||
|   NewInternalPort pkg2.UI2 | 	NewInternalPort           pkg2.UI2 | ||||||
|   NewInternalClient string | 	NewInternalClient         string | ||||||
|   NewEnabled pkg2.Boolean | 	NewEnabled                pkg2.Boolean | ||||||
|   NewPortMappingDescription string | 	NewPortMappingDescription string | ||||||
|   NewLeaseDuration pkg2.UI4 | 	NewLeaseDuration          pkg2.UI4 | ||||||
| } | } | ||||||
|  |  | ||||||
| // 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 | ||||||
| } | } | ||||||
|  |  | ||||||
| var _ pkg1.Action = &GetIdleDisconnectTime{} | 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,26 +292,29 @@ 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 | ||||||
| } | } | ||||||
|  |  | ||||||
| var _ pkg1.Action = &GetLinkLayerMaxBitRates{} | 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,27 +322,30 @@ 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 | ||||||
| } | } | ||||||
|  |  | ||||||
| // 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 | ||||||
| } | } | ||||||
|  |  | ||||||
| var _ pkg1.Action = &GetNATRSIPStatus{} | 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,27 +353,30 @@ 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 | ||||||
| } | } | ||||||
|  |  | ||||||
| // 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 | ||||||
| } | } | ||||||
|  |  | ||||||
| var _ pkg1.Action = &GetPPPAuthenticationProtocol{} | 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,26 +384,29 @@ 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 | ||||||
| } | } | ||||||
|  |  | ||||||
| var _ pkg1.Action = &GetPPPCompressionProtocol{} | 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,26 +414,29 @@ 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 | ||||||
| } | } | ||||||
|  |  | ||||||
| var _ pkg1.Action = &GetPPPEncryptionProtocol{} | 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,26 +444,29 @@ 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 | ||||||
| } | } | ||||||
|  |  | ||||||
| var _ pkg1.Action = &GetPassword{} | 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,61 +474,67 @@ 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 | ||||||
| } | } | ||||||
|  |  | ||||||
| var _ pkg1.Action = &GetSpecificPortMappingEntry{} | 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 | ||||||
|   NewPortMappingDescription string | 	NewPortMappingDescription string | ||||||
|   NewLeaseDuration pkg2.UI4 | 	NewLeaseDuration          pkg2.UI4 | ||||||
| } | } | ||||||
|  |  | ||||||
| // 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 | ||||||
| } | } | ||||||
|  |  | ||||||
| var _ pkg1.Action = &GetStatusInfo{} | 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,28 +542,31 @@ 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 | ||||||
| } | } | ||||||
|  |  | ||||||
| // 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 | ||||||
| } | } | ||||||
|  |  | ||||||
| var _ pkg1.Action = &GetUserName{} | 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,26 +574,29 @@ 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 | ||||||
| } | } | ||||||
|  |  | ||||||
| var _ pkg1.Action = &GetWarnDisconnectDelay{} | 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,26 +604,29 @@ 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 | ||||||
| } | } | ||||||
|  |  | ||||||
| var _ pkg1.Action = &RequestConnection{} | 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,19 +639,22 @@ 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 | ||||||
| } | } | ||||||
|  |  | ||||||
| var _ pkg1.Action = &RequestTermination{} | 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,25 +667,28 @@ 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 | ||||||
| } | } | ||||||
|  |  | ||||||
| var _ pkg1.Action = &SetAutoDisconnectTime{} | 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 | ||||||
| } | } | ||||||
|  |  | ||||||
| // SetAutoDisconnectTimeResponse contains the "out" args for the "SetAutoDisconnectTime" action. | // SetAutoDisconnectTimeResponse contains the "out" args for the "SetAutoDisconnectTime" action. | ||||||
| @@ -631,25 +697,28 @@ 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 | ||||||
| } | } | ||||||
|  |  | ||||||
| var _ pkg1.Action = &SetConnectionType{} | 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 | ||||||
| } | } | ||||||
|  |  | ||||||
| // SetConnectionTypeResponse contains the "out" args for the "SetConnectionType" action. | // SetConnectionTypeResponse contains the "out" args for the "SetConnectionType" action. | ||||||
| @@ -658,25 +727,28 @@ 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 | ||||||
| } | } | ||||||
|  |  | ||||||
| var _ pkg1.Action = &SetIdleDisconnectTime{} | 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 | ||||||
| } | } | ||||||
|  |  | ||||||
| // SetIdleDisconnectTimeResponse contains the "out" args for the "SetIdleDisconnectTime" action. | // SetIdleDisconnectTimeResponse contains the "out" args for the "SetIdleDisconnectTime" action. | ||||||
| @@ -685,25 +757,28 @@ 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 | ||||||
| } | } | ||||||
|  |  | ||||||
| var _ pkg1.Action = &SetWarnDisconnectDelay{} | 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 | ||||||
| } | } | ||||||
|  |  | ||||||
| // SetWarnDisconnectDelayResponse contains the "out" args for the "SetWarnDisconnectDelay" action. | // SetWarnDisconnectDelayResponse contains the "out" args for the "SetWarnDisconnectDelay" action. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user