package soap

Import Path
	github.com/huin/goupnp/soap (on go.dev)

Dependency Relation
	imports 16 packages, and imported by 3 packages

Involved Source Files soap.go types.go
Package-Level Type Names (total 4)
/* sort by: | */
EndpointURL url.URL HTTPClient http.Client PerformAction is the legacy version of PerformActionCtx, which uses context.Background. PerformSOAPAction makes a SOAP request, with the given action. inAction and outAction must both be pointers to structs with string fields only. func NewSOAPClient(endpointURL url.URL) *SOAPClient func github.com/huin/goupnp.(*Service).NewSOAPClient() *SOAPClient
SOAPFaultError implements error, and contains SOAP fault information. Detail struct{UPnPError struct{Errorcode int; ErrorDescription string}; Raw []byte} FaultCode string FaultString string (*SOAPFaultError) Error() string *SOAPFaultError : error
TimeOfDay is used in cases where SOAP "time" or "time.tz" is used. Duration of time since midnight. Set to true if Offset is specified. If false, then the timezone is unspecified (and by ISO8601 - implies some "local" time). Offset is non-zero only if time.tz is used. It is otherwise ignored. If non-zero, then it is regarded as a UTC offset in seconds. Note that the sub-minutes is ignored by the marshal function. func UnmarshalTimeOfDay(s string) (TimeOfDay, error) func UnmarshalTimeOfDayTz(s string) (tod TimeOfDay, err error) func MarshalTimeOfDay(v TimeOfDay) (string, error) func MarshalTimeOfDayTz(v TimeOfDay) (string, error)
TypeData provides metadata about for marshalling and unmarshalling a SOAP type. GoTypeName returns the name of the Go type. MarshalFunc returns the name of the function that marshals the type. UnmarshalFunc returns the name of the function that unmarshals the type.
Package-Level Functions (total 45)
MarshalBinBase64 marshals []byte to SOAP "bin.base64" type.
MarshalBinHex marshals []byte to SOAP "bin.hex" type.
MarshalBoolean marshals bool to SOAP "boolean" type.
MarshalChar marshals rune to SOAP "char" type.
MarshalDate marshals time.Time to SOAP "date" type. Note that this converts to local time, and discards the time-of-day components.
MarshalDateTime marshals time.Time to SOAP "dateTime" type. Note that this converts to local time.
MarshalDateTimeTz marshals time.Time to SOAP "dateTime.tz" type.
MarshalFixed14_4 marshals float64 to SOAP "fixed.14.4" type.
MarshalTimeOfDay marshals TimeOfDay to the "time" type.
MarshalTimeOfDayTz marshals TimeOfDay to the "time.tz" type.
MarshalURI marshals *url.URL to SOAP "uri" type.
func NewSOAPClient(endpointURL url.URL) *SOAPClient
UnmarshalBinBase64 unmarshals []byte from the SOAP "bin.base64" type.
UnmarshalBinHex unmarshals []byte from the SOAP "bin.hex" type.
UnmarshalBoolean unmarshals bool from the SOAP "boolean" type.
UnmarshalChar unmarshals rune from SOAP "char" type.
UnmarshalDate unmarshals time.Time from SOAP "date" type. This outputs the date as midnight in the local time zone.
UnmarshalDateTime unmarshals time.Time from the SOAP "dateTime" type. This returns a value in the local timezone.
UnmarshalDateTimeTz unmarshals time.Time from the SOAP "dateTime.tz" type. This returns a value in the local timezone when the timezone is unspecified.
UnmarshalFixed14_4 unmarshals float64 from SOAP "fixed.14.4" type.
UnmarshalTimeOfDay unmarshals TimeOfDay from the "time" type.
UnmarshalTimeOfDayTz unmarshals TimeOfDay from the "time.tz" type.
UnmarshalURI unmarshals *url.URL from the SOAP "uri" type.
Package-Level Variables (only one)
TypeDataMap maps from a SOAP type (e.g "fixed.14.4") to its type data.