package soap
Import Path
github.com/huin/goupnp/soap (on go.dev)
Dependency Relation
imports 16 packages, and imported by 3 packages
Package-Level Type Names (total 4)
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.
func MarshalInt(v int64) (string, error) func MarshalString(v string) (string, error)
MarshalTimeOfDay marshals TimeOfDay to the "time" type.
MarshalTimeOfDayTz marshals TimeOfDay to the "time.tz" type.
func MarshalUi1(v uint8) (string, error) func MarshalUi2(v uint16) (string, error) func MarshalUi4(v uint32) (string, error) func MarshalUi8(v uint64) (string, error)
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.
func UnmarshalI1(s string) (int8, error) func UnmarshalI2(s string) (int16, error) func UnmarshalI4(s string) (int32, error) func UnmarshalInt(s string) (int64, error) func UnmarshalR4(s string) (float32, error) func UnmarshalR8(s string) (float64, error) func UnmarshalString(v string) (string, error)
UnmarshalTimeOfDay unmarshals TimeOfDay from the "time" type.
UnmarshalTimeOfDayTz unmarshals TimeOfDay from the "time.tz" type.
func UnmarshalUi1(s string) (uint8, error) func UnmarshalUi2(s string) (uint16, error) func UnmarshalUi4(s string) (uint32, error) func UnmarshalUi8(s string) (uint64, error)
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.
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |