Add action container structs with descriptor methods.

This commit is contained in:
John Beisley
2022-06-08 17:51:47 +01:00
parent 0536e2c588
commit 91c176e495
4 changed files with 57 additions and 10 deletions

15
v2alpha/soap/soap.go Normal file
View File

@ -0,0 +1,15 @@
// Package soap defines basic types used by SOAP packages.
package soap
// SOAPAction defines the interface for the convenience self-describing action request/response
// struct types.
type SOAPAction interface {
// ServiceType returns Service type, e.g. "urn:schemas-upnp-org:service:Foo:1".
ServiceType() string
// ActionName returns Action name, e.g. "SetBar".
ActionName() string
// RefRequest returns reference to the action request member.
RefRequest() any
// RefResponse returns reference to the action response member.
RefResponse() any
}