Documentation
¶
Overview ¶
Package server implements an UPnP server and is the primary package to be used when building an UPnP server
Index ¶
- type BinBase64
- func (t BinBase64) Get() interface{}
- func (t *BinBase64) Init(v interface{}) (err error)
- func (t *BinBase64) IsNumeric() bool
- func (t *BinBase64) IsString() bool
- func (t BinBase64) IsZero() bool
- func (t *BinBase64) Set(v interface{}) (err error)
- func (t *BinBase64) SetFromString(s string) (err error)
- func (t BinBase64) String() string
- func (t BinBase64) Type() string
- type BinHex
- func (t BinHex) Get() interface{}
- func (t *BinHex) Init(v interface{}) (err error)
- func (t *BinHex) IsNumeric() bool
- func (t *BinHex) IsString() bool
- func (t BinHex) IsZero() bool
- func (t *BinHex) Set(v interface{}) (err error)
- func (t *BinHex) SetFromString(s string) (err error)
- func (t BinHex) String() string
- func (t BinHex) Type() string
- type Boolean
- func (t Boolean) Get() interface{}
- func (t *Boolean) Init(v interface{}) (err error)
- func (t *Boolean) IsNumeric() bool
- func (t *Boolean) IsString() bool
- func (t Boolean) IsZero() bool
- func (t *Boolean) Set(v interface{}) (err error)
- func (t *Boolean) SetFromString(s string) (err error)
- func (t Boolean) String() string
- func (t Boolean) Type() string
- type Char
- func (t Char) Get() interface{}
- func (t *Char) Init(v interface{}) (err error)
- func (t *Char) IsNumeric() bool
- func (t *Char) IsString() bool
- func (t Char) IsZero() bool
- func (t *Char) Set(v interface{}) (err error)
- func (t *Char) SetFromString(s string) (err error)
- func (t Char) String() string
- func (t Char) Type() string
- type Config
- type Date
- func (t Date) Get() interface{}
- func (t *Date) Init(v interface{}) (err error)
- func (t *Date) IsNumeric() bool
- func (t *Date) IsString() bool
- func (t Date) IsZero() bool
- func (t *Date) Set(v interface{}) (err error)
- func (t *Date) SetFromString(s string) (err error)
- func (t Date) String() string
- func (t Date) Type() string
- type DateTime
- func (t DateTime) Get() interface{}
- func (t *DateTime) Init(v interface{}) (err error)
- func (t *DateTime) IsNumeric() bool
- func (t *DateTime) IsString() bool
- func (t DateTime) IsZero() bool
- func (t *DateTime) Set(v interface{}) (err error)
- func (t *DateTime) SetFromString(s string) (err error)
- func (t DateTime) String() string
- func (t DateTime) Type() string
- type DateTimeTz
- func (t DateTimeTz) Get() interface{}
- func (t *DateTimeTz) Init(v interface{}) (err error)
- func (t *DateTimeTz) IsNumeric() bool
- func (t *DateTimeTz) IsString() bool
- func (t DateTimeTz) IsZero() bool
- func (t *DateTimeTz) Set(v interface{}) (err error)
- func (t *DateTimeTz) SetFromString(s string) (err error)
- func (t DateTimeTz) String() string
- func (t DateTimeTz) Type() string
- type Fixed14_4
- func (t Fixed14_4) Get() interface{}
- func (t *Fixed14_4) Init(v interface{}) (err error)
- func (t *Fixed14_4) IsNumeric() bool
- func (t *Fixed14_4) IsString() bool
- func (t Fixed14_4) IsZero() bool
- func (t *Fixed14_4) Set(v interface{}) (err error)
- func (t *Fixed14_4) SetFromString(s string) (err error)
- func (t Fixed14_4) String() string
- func (t Fixed14_4) Type() string
- type Float
- func (t Float) Get() interface{}
- func (t *Float) Init(v interface{}) (err error)
- func (t *Float) IsNumeric() bool
- func (t *Float) IsString() bool
- func (t Float) IsZero() bool
- func (t *Float) Set(v interface{}) (err error)
- func (t *Float) SetFromString(s string) (err error)
- func (t Float) String() string
- func (t Float) Type() string
- type I1
- func (t I1) Get() interface{}
- func (t *I1) Init(v interface{}) (err error)
- func (t *I1) IsNumeric() bool
- func (t *I1) IsString() bool
- func (t I1) IsZero() bool
- func (t *I1) Set(v interface{}) (err error)
- func (t *I1) SetFromString(s string) (err error)
- func (t I1) String() string
- func (t I1) Type() string
- type I2
- func (t I2) Get() interface{}
- func (t *I2) Init(v interface{}) (err error)
- func (t *I2) IsNumeric() bool
- func (t *I2) IsString() bool
- func (t I2) IsZero() bool
- func (t *I2) Set(v interface{}) (err error)
- func (t *I2) SetFromString(s string) (err error)
- func (t I2) String() string
- func (t I2) Type() string
- type I4
- func (t I4) Get() interface{}
- func (t *I4) Init(v interface{}) (err error)
- func (t *I4) IsNumeric() bool
- func (t *I4) IsString() bool
- func (t I4) IsZero() bool
- func (t *I4) Set(v interface{}) (err error)
- func (t *I4) SetFromString(s string) (err error)
- func (t I4) String() string
- func (t I4) Type() string
- type Int
- func (t Int) Get() interface{}
- func (t *Int) Init(v interface{}) (err error)
- func (t *Int) IsNumeric() bool
- func (t *Int) IsString() bool
- func (t Int) IsZero() bool
- func (t *Int) Set(v interface{}) (err error)
- func (t *Int) SetFromString(s string) (err error)
- func (t Int) String() string
- func (t Int) Type() string
- type Number
- func (t Number) Get() interface{}
- func (t *Number) Init(v interface{}) (err error)
- func (t *Number) IsNumeric() bool
- func (t *Number) IsString() bool
- func (t Number) IsZero() bool
- func (t *Number) Set(v interface{}) (err error)
- func (t *Number) SetFromString(s string) (err error)
- func (t Number) String() string
- func (t Number) Type() string
- type R4
- func (t R4) Get() interface{}
- func (t *R4) Init(v interface{}) (err error)
- func (t *R4) IsNumeric() bool
- func (t *R4) IsString() bool
- func (t R4) IsZero() bool
- func (t *R4) Set(v interface{}) (err error)
- func (t *R4) SetFromString(s string) (err error)
- func (t R4) String() string
- func (t R4) Type() string
- type R8
- func (t R8) Get() interface{}
- func (t *R8) Init(v interface{}) (err error)
- func (t *R8) IsNumeric() bool
- func (t *R8) IsString() bool
- func (t R8) IsZero() bool
- func (t *R8) Set(v interface{}) (err error)
- func (t *R8) SetFromString(s string) (err error)
- func (t R8) String() string
- func (t R8) Type() string
- type SOAPError
- type SOAPHandleFunc
- type SOAPRespArgs
- type Server
- func (me *Server) BootID() uint32
- func (me *Server) ConfigID() uint32
- func (me *Server) Connect() (err error)
- func (me *Server) Disconnect()
- func (me *Server) Errors() <-chan error
- func (me *Server) HTTPHandleFunc(pattern string, handleFunc func(http.ResponseWriter, *http.Request))
- func (me *Server) Run(ctx context.Context, wg *sync.WaitGroup)
- func (me *Server) SOAPHandleFunc(svcID string, act string, handler SOAPHandleFunc)
- func (me *Server) ServerString() (s string)
- func (me *Server) StateVariable(svcID, svName string) (StateVar, bool)
- type StateVar
- type StateVars
- type String
- func (t String) Get() interface{}
- func (t *String) Init(v interface{}) (err error)
- func (t *String) IsNumeric() bool
- func (t *String) IsString() bool
- func (t String) IsZero() bool
- func (t *String) Set(v interface{}) (err error)
- func (t *String) SetFromString(s string) (err error)
- func (t String) String() string
- func (t String) Type() string
- type TimeOfDay
- func (t TimeOfDay) Get() interface{}
- func (t *TimeOfDay) Init(v interface{}) (err error)
- func (t *TimeOfDay) IsNumeric() bool
- func (t *TimeOfDay) IsString() bool
- func (t TimeOfDay) IsZero() bool
- func (t *TimeOfDay) Set(v interface{}) (err error)
- func (t *TimeOfDay) SetFromString(s string) (err error)
- func (t TimeOfDay) String() string
- func (t TimeOfDay) Type() string
- type TimeOfDayTz
- func (t TimeOfDayTz) Get() interface{}
- func (t *TimeOfDayTz) Init(v interface{}) (err error)
- func (t *TimeOfDayTz) IsNumeric() bool
- func (t *TimeOfDayTz) IsString() bool
- func (t TimeOfDayTz) IsZero() bool
- func (t *TimeOfDayTz) Set(v interface{}) (err error)
- func (t *TimeOfDayTz) SetFromString(s string) (err error)
- func (t TimeOfDayTz) String() string
- func (t TimeOfDayTz) Type() string
- type UI1
- func (t UI1) Get() interface{}
- func (t *UI1) Init(v interface{}) (err error)
- func (t *UI1) IsNumeric() bool
- func (t *UI1) IsString() bool
- func (t UI1) IsZero() bool
- func (t *UI1) Set(v interface{}) (err error)
- func (t *UI1) SetFromString(s string) (err error)
- func (t UI1) String() string
- func (t UI1) Type() string
- type UI2
- func (t UI2) Get() interface{}
- func (t *UI2) Init(v interface{}) (err error)
- func (t *UI2) IsNumeric() bool
- func (t *UI2) IsString() bool
- func (t UI2) IsZero() bool
- func (t *UI2) Set(v interface{}) (err error)
- func (t *UI2) SetFromString(s string) (err error)
- func (t UI2) String() string
- func (t UI2) Type() string
- type UI4
- func (t UI4) Get() interface{}
- func (t *UI4) Init(v interface{}) (err error)
- func (t *UI4) IsNumeric() bool
- func (t *UI4) IsString() bool
- func (t UI4) IsZero() bool
- func (t *UI4) Set(v interface{}) (err error)
- func (t *UI4) SetFromString(s string) (err error)
- func (t UI4) String() string
- func (t UI4) Type() string
- type UI8
- func (t UI8) Get() interface{}
- func (t *UI8) Init(v interface{}) (err error)
- func (t *UI8) IsNumeric() bool
- func (t *UI8) IsString() bool
- func (t UI8) IsZero() bool
- func (t *UI8) Set(v interface{}) (err error)
- func (t *UI8) SetFromString(s string) (err error)
- func (t UI8) String() string
- func (t UI8) Type() string
- type UPnPErrorCode
- type URI
- func (t URI) Get() interface{}
- func (t *URI) Init(v interface{}) (err error)
- func (t *URI) IsNumeric() bool
- func (t *URI) IsString() bool
- func (t URI) IsZero() bool
- func (t *URI) Set(v interface{}) (err error)
- func (t *URI) SetFromString(s string) (err error)
- func (t URI) String() string
- func (t URI) Type() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinBase64 ¶
BinBase64 is the representation of the SOAP type bin.base64 as golang type
func NewBinBase64 ¶
NewBinBase64 creates a new SOAP variable the represents the SOAP type bin.base64
func (*BinBase64) IsNumeric ¶
IsNumeric returns true is the value of t is numeric, otherwise false is returned
func (*BinBase64) IsString ¶
IsString returns true is the value of t is a string, otherwise false is returned
func (BinBase64) IsZero ¶
IsZero returns true is the value of t is the zero value of that type, otherwise false is returned
func (*BinBase64) SetFromString ¶
SetFromString sets the value of t from s
type BinHex ¶
BinHex is the representation of the SOAP type bin.hex as golang type
func (*BinHex) IsNumeric ¶
IsNumeric returns true is the value of t is numeric, otherwise false is returned
func (*BinHex) IsString ¶
IsString returns true is the value of t is a string, otherwise false is returned
func (BinHex) IsZero ¶
IsZero returns true is the value of t is the zero value of that type, otherwise false is returned
func (*BinHex) SetFromString ¶
SetFromString sets the value of t from s
type Boolean ¶
Boolean is the representation of the SOAP type boolean as golang type
func NewBoolean ¶
NewBoolean creates a new SOAP variable the represents the SOAP type boolean
func (*Boolean) IsNumeric ¶
IsNumeric returns true is the value of t is numeric, otherwise false is returned
func (*Boolean) IsString ¶
IsString returns true is the value of t is a string, otherwise false is returned
func (Boolean) IsZero ¶
IsZero returns true is the value of t is the zero value of that type, otherwise false is returned
func (*Boolean) SetFromString ¶
SetFromString sets the value of t from s
type Char ¶
Char is the representation of the SOAP type char as golang type
func (*Char) IsNumeric ¶
IsNumeric returns true is the value of t is numeric, otherwise false is returned
func (*Char) IsString ¶
IsString returns true is the value of t is a string, otherwise false is returned
func (Char) IsZero ¶
IsZero returns true is the value of t is the zero value of that type, otherwise false is returned
func (*Char) SetFromString ¶
SetFromString sets the value of t from s
type Config ¶
type Config struct { // Interfaces contain the names of the network interfaces to be used Interfaces []string // Port is the prot where the server listens Port int MaxAge int ProductName string ProductVersion string StatusFile string }
Config represents the configuration of the UPnP server
type Date ¶
Date is the representation of the SOAP type date as golang type
func (*Date) IsNumeric ¶
IsNumeric returns true is the value of t is numeric, otherwise false is returned
func (*Date) IsString ¶
IsString returns true is the value of t is a string, otherwise false is returned
func (Date) IsZero ¶
IsZero returns true is the value of t is the zero value of that type, otherwise false is returned
func (*Date) SetFromString ¶
SetFromString sets the value of t from s
type DateTime ¶
DateTime is the representation of the SOAP type dateTime as golang type
func NewDateTime ¶
NewDateTime creates a new SOAP variable the represents the SOAP type dateTime
func (*DateTime) IsNumeric ¶
IsNumeric returns true is the value of t is numeric, otherwise false is returned
func (*DateTime) IsString ¶
IsString returns true is the value of t is a string, otherwise false is returned
func (DateTime) IsZero ¶
IsZero returns true is the value of t is the zero value of that type, otherwise false is returned
func (*DateTime) SetFromString ¶
SetFromString sets the value of t from s
type DateTimeTz ¶
DateTimeTz is the representation of the SOAP type dateTime.tz as golang type
func NewDateTimeTz ¶
func NewDateTimeTz(s string) (t *DateTimeTz, err error)
NewDateTimeTz creates a new SOAP variable the represents the SOAP type dateTime.tz
func (*DateTimeTz) Init ¶
func (t *DateTimeTz) Init(v interface{}) (err error)
Init initializes t with a new value v
func (*DateTimeTz) IsNumeric ¶
func (t *DateTimeTz) IsNumeric() bool
IsNumeric returns true is the value of t is numeric, otherwise false is returned
func (*DateTimeTz) IsString ¶
func (t *DateTimeTz) IsString() bool
IsString returns true is the value of t is a string, otherwise false is returned
func (DateTimeTz) IsZero ¶
func (t DateTimeTz) IsZero() bool
IsZero returns true is the value of t is the zero value of that type, otherwise false is returned
func (*DateTimeTz) Set ¶
func (t *DateTimeTz) Set(v interface{}) (err error)
Set sets t to the new value v
func (*DateTimeTz) SetFromString ¶
func (t *DateTimeTz) SetFromString(s string) (err error)
SetFromString sets the value of t from s
func (DateTimeTz) String ¶
func (t DateTimeTz) String() string
String returns the string representation of the value of t
type Fixed14_4 ¶
Fixed14_4 is the representation of the SOAP type fixed.14.4 as golang type
func NewFixed14_4 ¶
NewFixed14_4 creates a new SOAP variable the represents the SOAP type fixed.14.4
func (*Fixed14_4) IsNumeric ¶
IsNumeric returns true is the value of t is numeric, otherwise false is returned
func (*Fixed14_4) IsString ¶
IsString returns true is the value of t is a string, otherwise false is returned
func (Fixed14_4) IsZero ¶
IsZero returns true is the value of t is the zero value of that type, otherwise false is returned
func (*Fixed14_4) SetFromString ¶
SetFromString sets the value of t from s
type Float ¶
Float is the representation of the SOAP type float as golang type
func (*Float) IsNumeric ¶
IsNumeric returns true is the value of t is numeric, otherwise false is returned
func (*Float) IsString ¶
IsString returns true is the value of t is a string, otherwise false is returned
func (Float) IsZero ¶
IsZero returns true is the value of t is the zero value of that type, otherwise false is returned
func (*Float) SetFromString ¶
SetFromString sets the value of t from s
type I1 ¶
I1 is the representation of the SOAP type i1 as golang type
func (*I1) IsNumeric ¶
IsNumeric returns true is the value of t is numeric, otherwise false is returned
func (*I1) IsString ¶
IsString returns true is the value of t is a string, otherwise false is returned
func (I1) IsZero ¶
IsZero returns true is the value of t is the zero value of that type, otherwise false is returned
func (*I1) SetFromString ¶
SetFromString sets the value of t from s
type I2 ¶
I2 is the representation of the SOAP type i2 as golang type
func (*I2) IsNumeric ¶
IsNumeric returns true is the value of t is numeric, otherwise false is returned
func (*I2) IsString ¶
IsString returns true is the value of t is a string, otherwise false is returned
func (I2) IsZero ¶
IsZero returns true is the value of t is the zero value of that type, otherwise false is returned
func (*I2) SetFromString ¶
SetFromString sets the value of t from s
type I4 ¶
I4 is the representation of the SOAP type i4 as golang type
func (*I4) IsNumeric ¶
IsNumeric returns true is the value of t is numeric, otherwise false is returned
func (*I4) IsString ¶
IsString returns true is the value of t is a string, otherwise false is returned
func (I4) IsZero ¶
IsZero returns true is the value of t is the zero value of that type, otherwise false is returned
func (*I4) SetFromString ¶
SetFromString sets the value of t from s
type Int ¶
Int is the representation of the SOAP type int as golang type
func (*Int) IsNumeric ¶
IsNumeric returns true is the value of t is numeric, otherwise false is returned
func (*Int) IsString ¶
IsString returns true is the value of t is a string, otherwise false is returned
func (Int) IsZero ¶
IsZero returns true is the value of t is the zero value of that type, otherwise false is returned
func (*Int) SetFromString ¶
SetFromString sets the value of t from s
type Number ¶
Number is the representation of the SOAP type number as golang type
func (*Number) IsNumeric ¶
IsNumeric returns true is the value of t is numeric, otherwise false is returned
func (*Number) IsString ¶
IsString returns true is the value of t is a string, otherwise false is returned
func (Number) IsZero ¶
IsZero returns true is the value of t is the zero value of that type, otherwise false is returned
func (*Number) SetFromString ¶
SetFromString sets the value of t from s
type R4 ¶
R4 is the representation of the SOAP type r4 as golang type
func (*R4) IsNumeric ¶
IsNumeric returns true is the value of t is numeric, otherwise false is returned
func (*R4) IsString ¶
IsString returns true is the value of t is a string, otherwise false is returned
func (R4) IsZero ¶
IsZero returns true is the value of t is the zero value of that type, otherwise false is returned
func (*R4) SetFromString ¶
SetFromString sets the value of t from s
type R8 ¶
R8 is the representation of the SOAP type r8 as golang type
func (*R8) IsNumeric ¶
IsNumeric returns true is the value of t is numeric, otherwise false is returned
func (*R8) IsString ¶
IsString returns true is the value of t is a string, otherwise false is returned
func (R8) IsZero ¶
IsZero returns true is the value of t is the zero value of that type, otherwise false is returned
func (*R8) SetFromString ¶
SetFromString sets the value of t from s
type SOAPError ¶
type SOAPError struct { Code UPnPErrorCode Desc string }
SOAPError represents a SOAP error
type SOAPHandleFunc ¶
type SOAPHandleFunc func(StateVars) (SOAPRespArgs, SOAPError)
SOAPHandleFunc represents a handler function for calls of SOAP actions
type SOAPRespArgs ¶
SOAPRespArgs maps argument name to argument value
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents the UPnP server
func New ¶
func New(cfg Config, rootDesc *desc.RootDevice, svcDescs desc.ServiceMap) (srv *Server, err error)
New creates a new instance of the UPnP server from a device description and service descriptions. Note: The keys of the service map must correspond to the service ids in the device description
func (*Server) Disconnect ¶
func (me *Server) Disconnect()
Disconnect stops the SSDP processes and the multicast eventing
func (*Server) HTTPHandleFunc ¶
func (me *Server) HTTPHandleFunc(pattern string, handleFunc func(http.ResponseWriter, *http.Request))
HTTPHandleFunc is a wrapper around http.ServeMux.HandleFunc. It allowes to register handler functions for given patterns
func (*Server) SOAPHandleFunc ¶
func (me *Server) SOAPHandleFunc(svcID string, act string, handler SOAPHandleFunc)
SOAPHandleFunc allows to register functions to handle UPnP SOAP requests. Such handlers are defined per service ID / action combination
func (*Server) ServerString ¶
ServerString assembles the server string in the format "<OS>/<OS version> UPnP/<UPnP version> <product name>/<product version>"
type StateVar ¶
type StateVar interface { Type() string Init(interface{}) error Get() interface{} Set(interface{}) error SetFromString(string) error IsNumeric() bool IsString() bool IsZero() bool String() string Lock() Unlock() }
StateVar represents a SOAP variable (e.g. a SOAP state variable)
type String ¶
String is the representation of the SOAP type string as golang type
func (*String) IsNumeric ¶
IsNumeric returns true is the value of t is numeric, otherwise false is returned
func (*String) IsString ¶
IsString returns true is the value of t is a string, otherwise false is returned
func (String) IsZero ¶
IsZero returns true is the value of t is the zero value of that type, otherwise false is returned
func (*String) SetFromString ¶
SetFromString sets the value of t from s
type TimeOfDay ¶
TimeOfDay is the representation of the SOAP type time as golang type
func NewTimeOfDay ¶
NewTimeOfDay creates a new SOAP variable the represents the SOAP type time
func (*TimeOfDay) IsNumeric ¶
IsNumeric returns true is the value of t is numeric, otherwise false is returned
func (*TimeOfDay) IsString ¶
IsString returns true is the value of t is a string, otherwise false is returned
func (TimeOfDay) IsZero ¶
IsZero returns true is the value of t is the zero value of that type, otherwise false is returned
func (*TimeOfDay) SetFromString ¶
SetFromString sets the value of t from s
type TimeOfDayTz ¶
TimeOfDayTz is the representation of the SOAP type time.tz as golang type
func NewTimeOfDayTz ¶
func NewTimeOfDayTz(s string) (t *TimeOfDayTz, err error)
NewTimeOfDayTz creates a new SOAP variable the represents the SOAP type time.tz
func (*TimeOfDayTz) Init ¶
func (t *TimeOfDayTz) Init(v interface{}) (err error)
Init initializes t with a new value v
func (*TimeOfDayTz) IsNumeric ¶
func (t *TimeOfDayTz) IsNumeric() bool
IsNumeric returns true is the value of t is numeric, otherwise false is returned
func (*TimeOfDayTz) IsString ¶
func (t *TimeOfDayTz) IsString() bool
IsString returns true is the value of t is a string, otherwise false is returned
func (TimeOfDayTz) IsZero ¶
func (t TimeOfDayTz) IsZero() bool
IsZero returns true is the value of t is the zero value of that type, otherwise false is returned
func (*TimeOfDayTz) Set ¶
func (t *TimeOfDayTz) Set(v interface{}) (err error)
Set sets t to the new value v
func (*TimeOfDayTz) SetFromString ¶
func (t *TimeOfDayTz) SetFromString(s string) (err error)
SetFromString sets the value of t from s
func (TimeOfDayTz) String ¶
func (t TimeOfDayTz) String() string
String returns the string representation of the value of t
type UI1 ¶
UI1 is the representation of the SOAP type ui1 as golang type
func (*UI1) IsNumeric ¶
IsNumeric returns true is the value of t is numeric, otherwise false is returned
func (*UI1) IsString ¶
IsString returns true is the value of t is a string, otherwise false is returned
func (UI1) IsZero ¶
IsZero returns true is the value of t is the zero value of that type, otherwise false is returned
func (*UI1) SetFromString ¶
SetFromString sets the value of t from s
type UI2 ¶
UI2 is the representation of the SOAP type ui2 as golang type
func (*UI2) IsNumeric ¶
IsNumeric returns true is the value of t is numeric, otherwise false is returned
func (*UI2) IsString ¶
IsString returns true is the value of t is a string, otherwise false is returned
func (UI2) IsZero ¶
IsZero returns true is the value of t is the zero value of that type, otherwise false is returned
func (*UI2) SetFromString ¶
SetFromString sets the value of t from s
type UI4 ¶
UI4 is the representation of the SOAP type ui4 as golang type
func (*UI4) IsNumeric ¶
IsNumeric returns true is the value of t is numeric, otherwise false is returned
func (*UI4) IsString ¶
IsString returns true is the value of t is a string, otherwise false is returned
func (UI4) IsZero ¶
IsZero returns true is the value of t is the zero value of that type, otherwise false is returned
func (*UI4) SetFromString ¶
SetFromString sets the value of t from s
type UI8 ¶
UI8 is the representation of the SOAP type ui8 as golang type
func (*UI8) IsNumeric ¶
IsNumeric returns true is the value of t is numeric, otherwise false is returned
func (*UI8) IsString ¶
IsString returns true is the value of t is a string, otherwise false is returned
func (UI8) IsZero ¶
IsZero returns true is the value of t is the zero value of that type, otherwise false is returned
func (*UI8) SetFromString ¶
SetFromString sets the value of t from s
type UPnPErrorCode ¶
type UPnPErrorCode uint
UPnPErrorCode represents an UPnP error code
const ( // UPnPErrorInvalidAction is the code foran invalid action UPnPErrorInvalidAction UPnPErrorCode = 400 // UPnPErrorInvalidArgs is the code for invalid arguments UPnPErrorInvalidArgs UPnPErrorCode = 402 // UPnPErrorActionFailed is the code for a failed action UPnPErrorActionFailed UPnPErrorCode = 501 // UPnPErrorArgValInvalid is the code for an invalid argument value UPnPErrorArgValInvalid UPnPErrorCode = 600 // UPnPErrorArgValOutOfRange is the code for an argument value that is out // of range UPnPErrorArgValOutOfRange UPnPErrorCode = 601 // UPnPErrorOptActionNotImplemented is the code for an action that is // called but not implemented UPnPErrorOptActionNotImplemented UPnPErrorCode = 602 // UPnPErrorHumanRequired indicates that human interaction is required UPnPErrorHumanRequired UPnPErrorCode = 604 // UPnPErrorStrTooLong indicates that a string is too long UPnPErrorStrTooLong UPnPErrorCode = 605 )
type URI ¶
URI is the representation of the SOAP type uri as golang type
func (*URI) IsNumeric ¶
IsNumeric returns true is the value of t is numeric, otherwise false is returned
func (*URI) IsString ¶
IsString returns true is the value of t is a string, otherwise false is returned
func (URI) IsZero ¶
IsZero returns true is the value of t is the zero value of that type, otherwise false is returned
func (*URI) SetFromString ¶
SetFromString sets the value of t from s
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
Package desc implements data types to map to the content from description XML files
|
Package desc implements data types to map to the content from description XML files |
Package main generates the Go types that implement the SOAP types i4, ui2, string, fixed.14.4 etc.
|
Package main generates the Go types that implement the SOAP types i4, ui2, string, fixed.14.4 etc. |
internal
|
|
events
Package events implements eventing for state variables.
|
Package events implements eventing for state variables. |
network
Package network contains function of facilitate sending and receiving messages via UDP and TCP
|
Package network contains function of facilitate sending and receiving messages via UDP and TCP |
ssdp
Package ssdp implements an SSDP (=Simple Service Discovery Protocol) server
|
Package ssdp implements an SSDP (=Simple Service Discovery Protocol) server |