types

package
Version: v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2020 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Overview

Package types implements data types that are used internally

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFromDesc

func CreateFromDesc(dvcDesc *desc.RootDevice, svcDescs desc.ServiceMap, listener func() chan *StatVar) (*RootDevice, ServiceMap, bool, error)

CreateFromDesc take devices and service descriptions and creates device and service objects from it. listener is a listener for multicast eventing. It returns a reference to the root device, a map of services and whether multicast eventing is required. Note: The key of svcDesc must correspong to the service ids in dvcDesc to allow a proper connection between of services and devides

Types

type BinBase64

type BinBase64 struct {
	// contains filtered or unexported fields
}

BinBase64 is the representation of the SOAP type bin.base64 as golang type

func NewBinBase64

func NewBinBase64(s string) (t *BinBase64, err error)

NewBinBase64 creates a new SOAP variable the represents the SOAP type bin.base64

func (BinBase64) Get

func (t BinBase64) Get() interface{}

Get returns the value of t

func (*BinBase64) IsNumeric

func (t *BinBase64) IsNumeric() bool

IsNumeric returns true is the value of t is numeric, otherwise false is returned

func (*BinBase64) IsString

func (t *BinBase64) IsString() bool

IsString returns true is the value of t is a string, otherwise false is returned

func (BinBase64) IsZero

func (t BinBase64) IsZero() bool

IsZero returns true is the value of t is the zero value of that type, otherwise false is returned

func (*BinBase64) Set

func (t *BinBase64) Set(v interface{}) (err error)

Set sets t to the new value v

func (*BinBase64) SetFromString

func (t *BinBase64) SetFromString(s string) (err error)

SetFromString sets the value of t from s

func (BinBase64) String

func (t BinBase64) String() string

String returns the string representation of the value of t

func (BinBase64) Type

func (t BinBase64) Type() string

Type returns the SOAP type of t

type BinHex

type BinHex struct {
	// contains filtered or unexported fields
}

BinHex is the representation of the SOAP type bin.hex as golang type

func NewBinHex

func NewBinHex(s string) (t *BinHex, err error)

NewBinHex creates a new SOAP variable the represents the SOAP type bin.hex

func (BinHex) Get

func (t BinHex) Get() interface{}

Get returns the value of t

func (*BinHex) IsNumeric

func (t *BinHex) IsNumeric() bool

IsNumeric returns true is the value of t is numeric, otherwise false is returned

func (*BinHex) IsString

func (t *BinHex) IsString() bool

IsString returns true is the value of t is a string, otherwise false is returned

func (BinHex) IsZero

func (t BinHex) IsZero() bool

IsZero returns true is the value of t is the zero value of that type, otherwise false is returned

func (*BinHex) Set

func (t *BinHex) Set(v interface{}) (err error)

Set sets t to the new value v

func (*BinHex) SetFromString

func (t *BinHex) SetFromString(s string) (err error)

SetFromString sets the value of t from s

func (BinHex) String

func (t BinHex) String() string

String returns the string representation of the value of t

func (BinHex) Type

func (t BinHex) Type() string

Type returns the SOAP type of t

type Boolean

type Boolean struct {
	// contains filtered or unexported fields
}

Boolean is the representation of the SOAP type boolean as golang type

func NewBoolean

func NewBoolean(s string) (t *Boolean, err error)

NewBoolean creates a new SOAP variable the represents the SOAP type boolean

func (Boolean) Get

func (t Boolean) Get() interface{}

Get returns the value of t

func (*Boolean) IsNumeric

func (t *Boolean) IsNumeric() bool

IsNumeric returns true is the value of t is numeric, otherwise false is returned

func (*Boolean) IsString

func (t *Boolean) IsString() bool

IsString returns true is the value of t is a string, otherwise false is returned

func (Boolean) IsZero

func (t Boolean) IsZero() bool

IsZero returns true is the value of t is the zero value of that type, otherwise false is returned

func (*Boolean) Set

func (t *Boolean) Set(v interface{}) (err error)

Set sets t to the new value v

func (*Boolean) SetFromString

func (t *Boolean) SetFromString(s string) (err error)

SetFromString sets the value of t from s

func (Boolean) String

func (t Boolean) String() string

String returns the string representation of the value of t

func (Boolean) Type

func (t Boolean) Type() string

Type returns the SOAP type of t

type BootID

type BootID struct {
	// contains filtered or unexported fields
}

BootID represents BOOTID.UPNP.ORG asdescribed in the of the UPnP Device Architecture 2.0

func NewBootID

func NewBootID() (id *BootID)

NewBootID creates a new boot id

func (*BootID) Incr

func (me *BootID) Incr()

Incr increases the current and the next value of boot id

func (*BootID) Next

func (me *BootID) Next() uint32

Next returns the next value that boot id would have

func (*BootID) Set

func (me *BootID) Set(i uint32)

Set sets the current value of boot id to i and set the next value accordingly

func (*BootID) Val

func (me *BootID) Val() uint32

Val returns the current value of boot id

type Char

type Char struct {
	// contains filtered or unexported fields
}

Char is the representation of the SOAP type char as golang type

func NewChar

func NewChar(s string) (t *Char, err error)

NewChar creates a new SOAP variable the represents the SOAP type char

func (Char) Get

func (t Char) Get() interface{}

Get returns the value of t

func (*Char) IsNumeric

func (t *Char) IsNumeric() bool

IsNumeric returns true is the value of t is numeric, otherwise false is returned

func (*Char) IsString

func (t *Char) IsString() bool

IsString returns true is the value of t is a string, otherwise false is returned

func (Char) IsZero

func (t Char) IsZero() bool

IsZero returns true is the value of t is the zero value of that type, otherwise false is returned

func (*Char) Set

func (t *Char) Set(v interface{}) (err error)

Set sets t to the new value v

func (*Char) SetFromString

func (t *Char) SetFromString(s string) (err error)

SetFromString sets the value of t from s

func (Char) String

func (t Char) String() string

String returns the string representation of the value of t

func (Char) Type

func (t Char) Type() string

Type returns the SOAP type of t

type ConfigID

type ConfigID struct {
	// contains filtered or unexported fields
}

ConfigID represents CONFIGID.UPNP.ORG asdescribed in the of the UPnP Device Architecture 2.0

func (*ConfigID) Incr

func (me *ConfigID) Incr()

Incr increases the current value of config id

func (*ConfigID) Set

func (me *ConfigID) Set(i uint32)

Set sets the current value of config id to i

func (*ConfigID) Val

func (me *ConfigID) Val() uint32

Val returns the current value of config id

type Date

type Date struct {
	// contains filtered or unexported fields
}

Date is the representation of the SOAP type date as golang type

func NewDate

func NewDate(s string) (t *Date, err error)

NewDate creates a new SOAP variable the represents the SOAP type date

func (Date) Get

func (t Date) Get() interface{}

Get returns the value of t

func (*Date) IsNumeric

func (t *Date) IsNumeric() bool

IsNumeric returns true is the value of t is numeric, otherwise false is returned

func (*Date) IsString

func (t *Date) IsString() bool

IsString returns true is the value of t is a string, otherwise false is returned

func (Date) IsZero

func (t Date) IsZero() bool

IsZero returns true is the value of t is the zero value of that type, otherwise false is returned

func (*Date) Set

func (t *Date) Set(v interface{}) (err error)

Set sets t to the new value v

func (*Date) SetFromString

func (t *Date) SetFromString(s string) (err error)

SetFromString sets the value of t from s

func (Date) String

func (t Date) String() string

String returns the string representation of the value of t

func (Date) Type

func (t Date) Type() string

Type returns the SOAP type of t

type DateTime

type DateTime struct {
	// contains filtered or unexported fields
}

DateTime is the representation of the SOAP type dateTime as golang type

func NewDateTime

func NewDateTime(s string) (t *DateTime, err error)

NewDateTime creates a new SOAP variable the represents the SOAP type dateTime

func (DateTime) Get

func (t DateTime) Get() interface{}

Get returns the value of t

func (*DateTime) IsNumeric

func (t *DateTime) IsNumeric() bool

IsNumeric returns true is the value of t is numeric, otherwise false is returned

func (*DateTime) IsString

func (t *DateTime) IsString() bool

IsString returns true is the value of t is a string, otherwise false is returned

func (DateTime) IsZero

func (t DateTime) IsZero() bool

IsZero returns true is the value of t is the zero value of that type, otherwise false is returned

func (*DateTime) Set

func (t *DateTime) Set(v interface{}) (err error)

Set sets t to the new value v

func (*DateTime) SetFromString

func (t *DateTime) SetFromString(s string) (err error)

SetFromString sets the value of t from s

func (DateTime) String

func (t DateTime) String() string

String returns the string representation of the value of t

func (DateTime) Type

func (t DateTime) Type() string

Type returns the SOAP type of t

type DateTimeTz

type DateTimeTz struct {
	// contains filtered or unexported fields
}

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) Get

func (t DateTimeTz) Get() interface{}

Get returns the value of t

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

func (DateTimeTz) Type

func (t DateTimeTz) Type() string

Type returns the SOAP type of t

type Device

type Device struct {
	UDN      string
	Services []*Service
	Devices  []*Device
}

Device represents an UPnP device

type Fixed14_4

type Fixed14_4 struct {
	// contains filtered or unexported fields
}

Fixed14_4 is the representation of the SOAP type fixed.14.4 as golang type

func NewFixed14_4

func NewFixed14_4(s string) (t *Fixed14_4, err error)

NewFixed14_4 creates a new SOAP variable the represents the SOAP type fixed.14.4

func (Fixed14_4) Get

func (t Fixed14_4) Get() interface{}

Get returns the value of t

func (*Fixed14_4) IsNumeric

func (t *Fixed14_4) IsNumeric() bool

IsNumeric returns true is the value of t is numeric, otherwise false is returned

func (*Fixed14_4) IsString

func (t *Fixed14_4) IsString() bool

IsString returns true is the value of t is a string, otherwise false is returned

func (Fixed14_4) IsZero

func (t Fixed14_4) IsZero() bool

IsZero returns true is the value of t is the zero value of that type, otherwise false is returned

func (*Fixed14_4) Set

func (t *Fixed14_4) Set(v interface{}) (err error)

Set sets t to the new value v

func (*Fixed14_4) SetFromString

func (t *Fixed14_4) SetFromString(s string) (err error)

SetFromString sets the value of t from s

func (Fixed14_4) String

func (t Fixed14_4) String() string

String returns the string representation of the value of t

func (Fixed14_4) Type

func (t Fixed14_4) Type() string

Type returns the SOAP type of t

type Float

type Float struct {
	// contains filtered or unexported fields
}

Float is the representation of the SOAP type float as golang type

func NewFloat

func NewFloat(s string) (t *Float, err error)

NewFloat creates a new SOAP variable the represents the SOAP type float

func (Float) Get

func (t Float) Get() interface{}

Get returns the value of t

func (*Float) IsNumeric

func (t *Float) IsNumeric() bool

IsNumeric returns true is the value of t is numeric, otherwise false is returned

func (*Float) IsString

func (t *Float) IsString() bool

IsString returns true is the value of t is a string, otherwise false is returned

func (Float) IsZero

func (t Float) IsZero() bool

IsZero returns true is the value of t is the zero value of that type, otherwise false is returned

func (*Float) Set

func (t *Float) Set(v interface{}) (err error)

Set sets t to the new value v

func (*Float) SetFromString

func (t *Float) SetFromString(s string) (err error)

SetFromString sets the value of t from s

func (Float) String

func (t Float) String() string

String returns the string representation of the value of t

func (Float) Type

func (t Float) Type() string

Type returns the SOAP type of t

type I1

type I1 struct {
	// contains filtered or unexported fields
}

I1 is the representation of the SOAP type i1 as golang type

func NewI1

func NewI1(s string) (t *I1, err error)

NewI1 creates a new SOAP variable the represents the SOAP type i1

func (I1) Get

func (t I1) Get() interface{}

Get returns the value of t

func (*I1) IsNumeric

func (t *I1) IsNumeric() bool

IsNumeric returns true is the value of t is numeric, otherwise false is returned

func (*I1) IsString

func (t *I1) IsString() bool

IsString returns true is the value of t is a string, otherwise false is returned

func (I1) IsZero

func (t I1) IsZero() bool

IsZero returns true is the value of t is the zero value of that type, otherwise false is returned

func (*I1) Set

func (t *I1) Set(v interface{}) (err error)

Set sets t to the new value v

func (*I1) SetFromString

func (t *I1) SetFromString(s string) (err error)

SetFromString sets the value of t from s

func (I1) String

func (t I1) String() string

String returns the string representation of the value of t

func (I1) Type

func (t I1) Type() string

Type returns the SOAP type of t

type I2

type I2 struct {
	// contains filtered or unexported fields
}

I2 is the representation of the SOAP type i2 as golang type

func NewI2

func NewI2(s string) (t *I2, err error)

NewI2 creates a new SOAP variable the represents the SOAP type i2

func (I2) Get

func (t I2) Get() interface{}

Get returns the value of t

func (*I2) IsNumeric

func (t *I2) IsNumeric() bool

IsNumeric returns true is the value of t is numeric, otherwise false is returned

func (*I2) IsString

func (t *I2) IsString() bool

IsString returns true is the value of t is a string, otherwise false is returned

func (I2) IsZero

func (t I2) IsZero() bool

IsZero returns true is the value of t is the zero value of that type, otherwise false is returned

func (*I2) Set

func (t *I2) Set(v interface{}) (err error)

Set sets t to the new value v

func (*I2) SetFromString

func (t *I2) SetFromString(s string) (err error)

SetFromString sets the value of t from s

func (I2) String

func (t I2) String() string

String returns the string representation of the value of t

func (I2) Type

func (t I2) Type() string

Type returns the SOAP type of t

type I4

type I4 struct {
	// contains filtered or unexported fields
}

I4 is the representation of the SOAP type i4 as golang type

func NewI4

func NewI4(s string) (t *I4, err error)

NewI4 creates a new SOAP variable the represents the SOAP type i4

func (I4) Get

func (t I4) Get() interface{}

Get returns the value of t

func (*I4) IsNumeric

func (t *I4) IsNumeric() bool

IsNumeric returns true is the value of t is numeric, otherwise false is returned

func (*I4) IsString

func (t *I4) IsString() bool

IsString returns true is the value of t is a string, otherwise false is returned

func (I4) IsZero

func (t I4) IsZero() bool

IsZero returns true is the value of t is the zero value of that type, otherwise false is returned

func (*I4) Set

func (t *I4) Set(v interface{}) (err error)

Set sets t to the new value v

func (*I4) SetFromString

func (t *I4) SetFromString(s string) (err error)

SetFromString sets the value of t from s

func (I4) String

func (t I4) String() string

String returns the string representation of the value of t

func (I4) Type

func (t I4) Type() string

Type returns the SOAP type of t

type Int

type Int struct {
	// contains filtered or unexported fields
}

Int is the representation of the SOAP type int as golang type

func NewInt

func NewInt(s string) (t *Int, err error)

NewInt creates a new SOAP variable the represents the SOAP type int

func (Int) Get

func (t Int) Get() interface{}

Get returns the value of t

func (*Int) IsNumeric

func (t *Int) IsNumeric() bool

IsNumeric returns true is the value of t is numeric, otherwise false is returned

func (*Int) IsString

func (t *Int) IsString() bool

IsString returns true is the value of t is a string, otherwise false is returned

func (Int) IsZero

func (t Int) IsZero() bool

IsZero returns true is the value of t is the zero value of that type, otherwise false is returned

func (*Int) Set

func (t *Int) Set(v interface{}) (err error)

Set sets t to the new value v

func (*Int) SetFromString

func (t *Int) SetFromString(s string) (err error)

SetFromString sets the value of t from s

func (Int) String

func (t Int) String() string

String returns the string representation of the value of t

func (Int) Type

func (t Int) Type() string

Type returns the SOAP type of t

type Number

type Number struct {
	// contains filtered or unexported fields
}

Number is the representation of the SOAP type number as golang type

func NewNumber

func NewNumber(s string) (t *Number, err error)

NewNumber creates a new SOAP variable the represents the SOAP type number

func (Number) Get

func (t Number) Get() interface{}

Get returns the value of t

func (*Number) IsNumeric

func (t *Number) IsNumeric() bool

IsNumeric returns true is the value of t is numeric, otherwise false is returned

func (*Number) IsString

func (t *Number) IsString() bool

IsString returns true is the value of t is a string, otherwise false is returned

func (Number) IsZero

func (t Number) IsZero() bool

IsZero returns true is the value of t is the zero value of that type, otherwise false is returned

func (*Number) Set

func (t *Number) Set(v interface{}) (err error)

Set sets t to the new value v

func (*Number) SetFromString

func (t *Number) SetFromString(s string) (err error)

SetFromString sets the value of t from s

func (Number) String

func (t Number) String() string

String returns the string representation of the value of t

func (Number) Type

func (t Number) Type() string

Type returns the SOAP type of t

type R4

type R4 struct {
	// contains filtered or unexported fields
}

R4 is the representation of the SOAP type r4 as golang type

func NewR4

func NewR4(s string) (t *R4, err error)

NewR4 creates a new SOAP variable the represents the SOAP type r4

func (R4) Get

func (t R4) Get() interface{}

Get returns the value of t

func (*R4) IsNumeric

func (t *R4) IsNumeric() bool

IsNumeric returns true is the value of t is numeric, otherwise false is returned

func (*R4) IsString

func (t *R4) IsString() bool

IsString returns true is the value of t is a string, otherwise false is returned

func (R4) IsZero

func (t R4) IsZero() bool

IsZero returns true is the value of t is the zero value of that type, otherwise false is returned

func (*R4) Set

func (t *R4) Set(v interface{}) (err error)

Set sets t to the new value v

func (*R4) SetFromString

func (t *R4) SetFromString(s string) (err error)

SetFromString sets the value of t from s

func (R4) String

func (t R4) String() string

String returns the string representation of the value of t

func (R4) Type

func (t R4) Type() string

Type returns the SOAP type of t

type R8

type R8 struct {
	// contains filtered or unexported fields
}

R8 is the representation of the SOAP type r8 as golang type

func NewR8

func NewR8(s string) (t *R8, err error)

NewR8 creates a new SOAP variable the represents the SOAP type r8

func (R8) Get

func (t R8) Get() interface{}

Get returns the value of t

func (*R8) IsNumeric

func (t *R8) IsNumeric() bool

IsNumeric returns true is the value of t is numeric, otherwise false is returned

func (*R8) IsString

func (t *R8) IsString() bool

IsString returns true is the value of t is a string, otherwise false is returned

func (R8) IsZero

func (t R8) IsZero() bool

IsZero returns true is the value of t is the zero value of that type, otherwise false is returned

func (*R8) Set

func (t *R8) Set(v interface{}) (err error)

Set sets t to the new value v

func (*R8) SetFromString

func (t *R8) SetFromString(s string) (err error)

SetFromString sets the value of t from s

func (R8) String

func (t R8) String() string

String returns the string representation of the value of t

func (R8) Type

func (t R8) Type() string

Type returns the SOAP type of t

type RootDevice

type RootDevice struct {
	Desc *desc.RootDevice
	*Device
}

RootDevice represents an UPnP root device

type SOAPVar

type SOAPVar interface {
	Type() string
	Get() interface{}
	Set(interface{}) error
	SetFromString(string) error
	IsNumeric() bool
	IsString() bool
	IsZero() bool
	String() string
}

SOAPVar represents a SOAP variable (e.g. a SOAP state variable)

func NewSOAPVar

func NewSOAPVar(typ, val string) (v SOAPVar, err error)

NewSOAPVar creates a new SOAP variable for the SOAP type typ with the value val

type SOAPVars

type SOAPVars map[string]SOAPVar

SOAPVars maps the name of a variable to the variable

type Service

type Service struct {
	ID       ServiceID
	Typ      ServiceType
	Ver      ServiceVersion
	Device   *Device
	ActSpecs map[string]map[string](*StatVar)
	StatVars map[string](*StatVar)
	Desc     *desc.Service
}

Service returns a UPnP service

type ServiceID

type ServiceID string

ServiceID represents the id of a service

func (ServiceID) Tail

func (me ServiceID) Tail() string

Tail returns the pure id part of a service id of the form urn:<DOMAIN-NAME>:serviceId:<SERVICE-ID>

func (ServiceID) Validate

func (me ServiceID) Validate() (ok bool, res []string)

Validate checks if the service id is of the form urn:<DOMAIN-NAME>:serviceId:<SERVICE-ID>. It returns true if this is the case. Otherwise false is returned and corresponding messages.

type ServiceMap

type ServiceMap map[string]*Service

ServiceMap map a service id (only the pure id part) to the corresponding service

type ServiceType

type ServiceType string

ServiceType represents the type of a service

type ServiceVersion

type ServiceVersion string

ServiceVersion represents the version of a service type

type StatVar

type StatVar struct {
	Name    string
	Service *Service
	Evented bool

	SOAPVar
	sync.Mutex
	// contains filtered or unexported fields
}

StatVar represents a state variable

func NewStatVar

func NewStatVar(sv desc.StateVariable, svc *Service, listener func() chan *StatVar) (*StatVar, error)

NewStatVar creates a new state variable based on a description (i.e. the corresponding state variable part of the service description) and for the service svc. A listener for multicast eventing is added.

func (*StatVar) Init

func (me *StatVar) Init(v interface{}) (err error)

Init initializes the state variable with v. Note: No multicast event is sent.

func (*StatVar) IsValid

func (me *StatVar) IsValid(s string) (bool, soap.UPnPErrorCode)

IsValid checks if the value of the state variable is valid. I.e. for numeric variables it's checked whether their value is in required range (if there is a range for that variable), for string variables it's checked whether the value is allowed (if there is a list of allowed values for that variable)

func (*StatVar) SendEvent

func (me *StatVar) SendEvent()

SendEvent triggers the sending of a multicast event for the state variable

func (*StatVar) Set

func (me *StatVar) Set(v interface{}) (err error)

Set sets the value of the state variable to v Note: A multicast event is sent.

type String

type String struct {
	// contains filtered or unexported fields
}

String is the representation of the SOAP type string as golang type

func NewString

func NewString(s string) (t *String, err error)

NewString creates a new SOAP variable the represents the SOAP type string

func (String) Get

func (t String) Get() interface{}

Get returns the value of t

func (*String) IsNumeric

func (t *String) IsNumeric() bool

IsNumeric returns true is the value of t is numeric, otherwise false is returned

func (*String) IsString

func (t *String) IsString() bool

IsString returns true is the value of t is a string, otherwise false is returned

func (String) IsZero

func (t String) IsZero() bool

IsZero returns true is the value of t is the zero value of that type, otherwise false is returned

func (*String) Set

func (t *String) Set(v interface{}) (err error)

Set sets t to the new value v

func (*String) SetFromString

func (t *String) SetFromString(s string) (err error)

SetFromString sets the value of t from s

func (String) String

func (t String) String() string

String returns the string representation of the value of t

func (String) Type

func (t String) Type() string

Type returns the SOAP type of t

type TimeOfDay

type TimeOfDay struct {
	// contains filtered or unexported fields
}

TimeOfDay is the representation of the SOAP type time as golang type

func NewTimeOfDay added in v0.1.1

func NewTimeOfDay(s string) (t *TimeOfDay, err error)

NewTimeOfDay creates a new SOAP variable the represents the SOAP type time

func (TimeOfDay) Get added in v0.1.1

func (t TimeOfDay) Get() interface{}

Get returns the value of t

func (*TimeOfDay) IsNumeric added in v0.1.1

func (t *TimeOfDay) IsNumeric() bool

IsNumeric returns true is the value of t is numeric, otherwise false is returned

func (*TimeOfDay) IsString added in v0.1.1

func (t *TimeOfDay) IsString() bool

IsString returns true is the value of t is a string, otherwise false is returned

func (TimeOfDay) IsZero added in v0.1.1

func (t TimeOfDay) IsZero() bool

IsZero returns true is the value of t is the zero value of that type, otherwise false is returned

func (*TimeOfDay) Set added in v0.1.1

func (t *TimeOfDay) Set(v interface{}) (err error)

Set sets t to the new value v

func (*TimeOfDay) SetFromString added in v0.1.1

func (t *TimeOfDay) SetFromString(s string) (err error)

SetFromString sets the value of t from s

func (TimeOfDay) String added in v0.1.1

func (t TimeOfDay) String() string

String returns the string representation of the value of t

func (TimeOfDay) Type added in v0.1.1

func (t TimeOfDay) Type() string

Type returns the SOAP type of t

type TimeOfDayTz added in v0.1.1

type TimeOfDayTz struct {
	// contains filtered or unexported fields
}

TimeOfDayTz is the representation of the SOAP type time.tz as golang type

func NewTimeOfDayTz added in v0.1.1

func NewTimeOfDayTz(s string) (t *TimeOfDayTz, err error)

NewTimeOfDayTz creates a new SOAP variable the represents the SOAP type time.tz

func (TimeOfDayTz) Get added in v0.1.1

func (t TimeOfDayTz) Get() interface{}

Get returns the value of t

func (*TimeOfDayTz) IsNumeric added in v0.1.1

func (t *TimeOfDayTz) IsNumeric() bool

IsNumeric returns true is the value of t is numeric, otherwise false is returned

func (*TimeOfDayTz) IsString added in v0.1.1

func (t *TimeOfDayTz) IsString() bool

IsString returns true is the value of t is a string, otherwise false is returned

func (TimeOfDayTz) IsZero added in v0.1.1

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 added in v0.1.1

func (t *TimeOfDayTz) Set(v interface{}) (err error)

Set sets t to the new value v

func (*TimeOfDayTz) SetFromString added in v0.1.1

func (t *TimeOfDayTz) SetFromString(s string) (err error)

SetFromString sets the value of t from s

func (TimeOfDayTz) String added in v0.1.1

func (t TimeOfDayTz) String() string

String returns the string representation of the value of t

func (TimeOfDayTz) Type added in v0.1.1

func (t TimeOfDayTz) Type() string

Type returns the SOAP type of t

type UI1

type UI1 struct {
	// contains filtered or unexported fields
}

UI1 is the representation of the SOAP type ui1 as golang type

func NewUI1

func NewUI1(s string) (t *UI1, err error)

NewUI1 creates a new SOAP variable the represents the SOAP type ui1

func (UI1) Get

func (t UI1) Get() interface{}

Get returns the value of t

func (*UI1) IsNumeric

func (t *UI1) IsNumeric() bool

IsNumeric returns true is the value of t is numeric, otherwise false is returned

func (*UI1) IsString

func (t *UI1) IsString() bool

IsString returns true is the value of t is a string, otherwise false is returned

func (UI1) IsZero

func (t UI1) IsZero() bool

IsZero returns true is the value of t is the zero value of that type, otherwise false is returned

func (*UI1) Set

func (t *UI1) Set(v interface{}) (err error)

Set sets t to the new value v

func (*UI1) SetFromString

func (t *UI1) SetFromString(s string) (err error)

SetFromString sets the value of t from s

func (UI1) String

func (t UI1) String() string

String returns the string representation of the value of t

func (UI1) Type

func (t UI1) Type() string

Type returns the SOAP type of t

type UI2

type UI2 struct {
	// contains filtered or unexported fields
}

UI2 is the representation of the SOAP type ui2 as golang type

func NewUI2

func NewUI2(s string) (t *UI2, err error)

NewUI2 creates a new SOAP variable the represents the SOAP type ui2

func (UI2) Get

func (t UI2) Get() interface{}

Get returns the value of t

func (*UI2) IsNumeric

func (t *UI2) IsNumeric() bool

IsNumeric returns true is the value of t is numeric, otherwise false is returned

func (*UI2) IsString

func (t *UI2) IsString() bool

IsString returns true is the value of t is a string, otherwise false is returned

func (UI2) IsZero

func (t UI2) IsZero() bool

IsZero returns true is the value of t is the zero value of that type, otherwise false is returned

func (*UI2) Set

func (t *UI2) Set(v interface{}) (err error)

Set sets t to the new value v

func (*UI2) SetFromString

func (t *UI2) SetFromString(s string) (err error)

SetFromString sets the value of t from s

func (UI2) String

func (t UI2) String() string

String returns the string representation of the value of t

func (UI2) Type

func (t UI2) Type() string

Type returns the SOAP type of t

type UI4

type UI4 struct {
	// contains filtered or unexported fields
}

UI4 is the representation of the SOAP type ui4 as golang type

func NewUI4

func NewUI4(s string) (t *UI4, err error)

NewUI4 creates a new SOAP variable the represents the SOAP type ui4

func (UI4) Get

func (t UI4) Get() interface{}

Get returns the value of t

func (*UI4) IsNumeric

func (t *UI4) IsNumeric() bool

IsNumeric returns true is the value of t is numeric, otherwise false is returned

func (*UI4) IsString

func (t *UI4) IsString() bool

IsString returns true is the value of t is a string, otherwise false is returned

func (UI4) IsZero

func (t UI4) IsZero() bool

IsZero returns true is the value of t is the zero value of that type, otherwise false is returned

func (*UI4) Set

func (t *UI4) Set(v interface{}) (err error)

Set sets t to the new value v

func (*UI4) SetFromString

func (t *UI4) SetFromString(s string) (err error)

SetFromString sets the value of t from s

func (UI4) String

func (t UI4) String() string

String returns the string representation of the value of t

func (UI4) Type

func (t UI4) Type() string

Type returns the SOAP type of t

type UI8

type UI8 struct {
	// contains filtered or unexported fields
}

UI8 is the representation of the SOAP type ui8 as golang type

func NewUI8

func NewUI8(s string) (t *UI8, err error)

NewUI8 creates a new SOAP variable the represents the SOAP type ui8

func (UI8) Get

func (t UI8) Get() interface{}

Get returns the value of t

func (*UI8) IsNumeric

func (t *UI8) IsNumeric() bool

IsNumeric returns true is the value of t is numeric, otherwise false is returned

func (*UI8) IsString

func (t *UI8) IsString() bool

IsString returns true is the value of t is a string, otherwise false is returned

func (UI8) IsZero

func (t UI8) IsZero() bool

IsZero returns true is the value of t is the zero value of that type, otherwise false is returned

func (*UI8) Set

func (t *UI8) Set(v interface{}) (err error)

Set sets t to the new value v

func (*UI8) SetFromString

func (t *UI8) SetFromString(s string) (err error)

SetFromString sets the value of t from s

func (UI8) String

func (t UI8) String() string

String returns the string representation of the value of t

func (UI8) Type

func (t UI8) Type() string

Type returns the SOAP type of t

type URI

type URI struct {
	// contains filtered or unexported fields
}

URI is the representation of the SOAP type uri as golang type

func NewURI

func NewURI(s string) (t *URI, err error)

NewURI creates a new SOAP variable the represents the SOAP type uri

func (URI) Get

func (t URI) Get() interface{}

Get returns the value of t

func (*URI) IsNumeric

func (t *URI) IsNumeric() bool

IsNumeric returns true is the value of t is numeric, otherwise false is returned

func (*URI) IsString

func (t *URI) IsString() bool

IsString returns true is the value of t is a string, otherwise false is returned

func (URI) IsZero

func (t URI) IsZero() bool

IsZero returns true is the value of t is the zero value of that type, otherwise false is returned

func (*URI) Set

func (t *URI) Set(v interface{}) (err error)

Set sets t to the new value v

func (*URI) SetFromString

func (t *URI) SetFromString(s string) (err error)

SetFromString sets the value of t from s

func (URI) String

func (t URI) String() string

String returns the string representation of the value of t

func (URI) Type

func (t URI) Type() string

Type returns the SOAP type of t

Directories

Path Synopsis
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL