Documentation
¶
Overview ¶
TODO: big WIP
Index ¶
- Variables
- func ArrayOfP[T any](klass func(arg Arg) (*T, error), fixedLength int, prototype any) func(Args, KWArgs) (PropertyKlass, error)
- func ArrayOfPs[T any](klass func(args Args) (*T, error), fixedLength int, prototype any) func(Args, KWArgs) (PropertyKlass, error)
- func ListOfP[T any](b func(arg Arg) (*T, error)) func(Args, KWArgs) (PropertyKlass, error)
- func ListOfPs[T any](klass func(args Args) (*T, error)) func(Args, KWArgs) (PropertyKlass, error)
- func RegisterObjectType(kwargs KWArgs) (any, error)
- func SequenceOfP[T any](b func(arg Arg) (*T, error)) func(Args, KWArgs) (PropertyKlass, error)
- func SequenceOfsP[T any](b func(args Args) (*T, error)) func(Args, KWArgs) (PropertyKlass, error)
- func V2P[T any](b func(arg Arg) (*T, error)) func(Args, KWArgs) (PropertyKlass, error)
- func Vs2P[T any](b func(args Args) (*T, error)) func(Args, KWArgs) (PropertyKlass, error)
- func WithObjectExtraProperties(extraProperties []Property) GenericApplier[*_Object]
- func WithObjectSupportsCov(supports bool) GenericApplier[*_Object]
- func WithObjectType(objectType string) GenericApplier[*_Object]
- func WithObject_Properties(_properties map[string]Property) GenericApplier[*_Object]
- func WithPropertyDefault(_default any) GenericApplier[*_Property]
- func WithPropertyMutable(mutable bool) GenericApplier[*_Property]
- func WithPropertyOptional(optional bool) GenericApplier[*_Property]
- type AccessCredentialObject
- type AccessDoorObject
- type AccessPointObject
- type AccessRightsObject
- type AccessUserObject
- type AccessZoneObject
- type AccumulatorObject
- type AlertEnrollmentObject
- type AnalogInputObject
- type AnalogOutputObject
- type AnalogValueObject
- type AuditLogObject
- type AuditReporterObject
- type AveragingObject
- type BinaryInputObject
- type BinaryLightingOutputObject
- type BinaryOutputObject
- type BinaryValueObject
- type BitStringValueObject
- type CalendarObject
- type ChannelObject
- type CharacterStringValueObject
- type CommandObject
- type CredentialDataInputObject
- type DatePatternValueObject
- type DateTimePatternValueObject
- type DateTimeValueObject
- type DateValueObject
- type DeviceObject
- type ElevatorGroupObject
- type EscalatorObject
- type EventEnrollmentObject
- type EventLogObject
- type EventLogRecord
- type EventLogRecordLogDatum
- type FileObject
- type GlobalGroupObject
- type GroupObject
- type IntegerValueObject
- type LargeAnalogValueObject
- type LifeSafetyPointObject
- type LifeSafetyZoneObject
- type LiftObject
- type LightingOutputObject
- type LoadControlObject
- type LoopObject
- type MultiStateInputObject
- type MultiStateOutputObject
- type MultiStateValueObject
- type NetworkPortObject
- type NetworkSecurityObject
- type NotificationClassObject
- type NotificationForwarderObject
- type Object
- type ObjectIdentifierProperty
- type OctetStringValueObject
- type OptionalProperty
- type PositiveIntegerValueObject
- type ProgramObject
- type Property
- type PropertyError
- type PropertyKlass
- type PulseConverterObject
- type ReadableProperty
- type ScheduleObject
- type StagingObject
- type StandardProperty
- type StructuredViewObject
- type TimePatternValueObject
- type TimeValueObject
- type TimerObject
- type TrendLogObject
- type WritableProperty
Constants ¶
This section is empty.
Variables ¶
View Source
var RegisteredObjectTypes = make(map[any]struct{})
Functions ¶
func ListOfP ¶
func ListOfP[T any](b func(arg Arg) (*T, error)) func(Args, KWArgs) (PropertyKlass, error)
func ListOfPs ¶
func ListOfPs[T any](klass func(args Args) (*T, error)) func(Args, KWArgs) (PropertyKlass, error)
func RegisterObjectType ¶
func SequenceOfP ¶
func SequenceOfP[T any](b func(arg Arg) (*T, error)) func(Args, KWArgs) (PropertyKlass, error)
TODO: finish
func SequenceOfsP ¶
func SequenceOfsP[T any](b func(args Args) (*T, error)) func(Args, KWArgs) (PropertyKlass, error)
func V2P ¶
func V2P[T any](b func(arg Arg) (*T, error)) func(Args, KWArgs) (PropertyKlass, error)
V2P accepts a function which takes an Arg and maps it to a PropertyKlass
func Vs2P ¶
func Vs2P[T any](b func(args Args) (*T, error)) func(Args, KWArgs) (PropertyKlass, error)
Vs2P accepts a function which takes an Args and maps it to a PropertyKlass
func WithObjectExtraProperties ¶
func WithObjectExtraProperties(extraProperties []Property) GenericApplier[*_Object]
func WithObjectSupportsCov ¶
func WithObjectSupportsCov(supports bool) GenericApplier[*_Object]
func WithObjectType ¶
func WithObjectType(objectType string) GenericApplier[*_Object]
func WithObject_Properties ¶
func WithPropertyDefault ¶
func WithPropertyDefault(_default any) GenericApplier[*_Property]
func WithPropertyMutable ¶
func WithPropertyMutable(mutable bool) GenericApplier[*_Property]
func WithPropertyOptional ¶
func WithPropertyOptional(optional bool) GenericApplier[*_Property]
Types ¶
type AccessCredentialObject ¶
type AccessCredentialObject struct {
Object
}
func NewAccessCredentialObject ¶
func NewAccessCredentialObject(options ...Option) (*AccessCredentialObject, error)
type AccessDoorObject ¶
type AccessDoorObject struct {
Object
}
func NewAccessDoorObject ¶
func NewAccessDoorObject(options ...Option) (*AccessDoorObject, error)
type AccessPointObject ¶
type AccessPointObject struct {
Object
}
func NewAccessPointObject ¶
func NewAccessPointObject(options ...Option) (*AccessPointObject, error)
type AccessRightsObject ¶
type AccessRightsObject struct {
Object
}
func NewAccessRightsObject ¶
func NewAccessRightsObject(options ...Option) (*AccessRightsObject, error)
type AccessUserObject ¶
type AccessUserObject struct {
Object
}
func NewAccessUserObject ¶
func NewAccessUserObject(options ...Option) (*AccessUserObject, error)
type AccessZoneObject ¶
type AccessZoneObject struct {
Object
}
func NewAccessZoneObject ¶
func NewAccessZoneObject(options ...Option) (*AccessZoneObject, error)
type AccumulatorObject ¶
type AccumulatorObject struct {
Object
}
func NewAccumulatorObject ¶
func NewAccumulatorObject(options ...Option) (*AccumulatorObject, error)
type AlertEnrollmentObject ¶
type AlertEnrollmentObject struct {
Object
}
func NewAlertEnrollmentObject ¶
func NewAlertEnrollmentObject(options ...Option) (*AlertEnrollmentObject, error)
type AnalogInputObject ¶
type AnalogInputObject struct {
Object
}
func NewAnalogInputObject ¶
func NewAnalogInputObject(options ...Option) (*AnalogInputObject, error)
type AnalogOutputObject ¶
type AnalogOutputObject struct {
Object
}
func NewAnalogOutputObject ¶
func NewAnalogOutputObject(options ...Option) (*AnalogOutputObject, error)
type AnalogValueObject ¶
type AnalogValueObject struct {
Object
}
func NewAnalogValueObject ¶
func NewAnalogValueObject(options ...Option) (*AnalogValueObject, error)
type AuditLogObject ¶
type AuditLogObject struct {
Object
}
func NewAuditLogObject ¶
func NewAuditLogObject(options ...Option) (*AuditLogObject, error)
type AuditReporterObject ¶
type AuditReporterObject struct {
Object
}
func NewAuditReporterObject ¶
func NewAuditReporterObject(options ...Option) (*AuditReporterObject, error)
type AveragingObject ¶
type AveragingObject struct {
Object
}
func NewAveragingObject ¶
func NewAveragingObject(options ...Option) (*AveragingObject, error)
type BinaryInputObject ¶
type BinaryInputObject struct {
Object
}
func NewBinaryInputObject ¶
func NewBinaryInputObject(options ...Option) (*BinaryInputObject, error)
type BinaryLightingOutputObject ¶
type BinaryLightingOutputObject struct {
Object
}
func NewBinaryLightingOutputObject ¶
func NewBinaryLightingOutputObject(options ...Option) (*BinaryLightingOutputObject, error)
type BinaryOutputObject ¶
type BinaryOutputObject struct {
Object
}
func NewBinaryOutputObject ¶
func NewBinaryOutputObject(options ...Option) (*BinaryOutputObject, error)
type BinaryValueObject ¶
type BinaryValueObject struct {
Object
}
func NewBinaryValueObject ¶
func NewBinaryValueObject(options ...Option) (*BinaryValueObject, error)
type BitStringValueObject ¶
type BitStringValueObject struct {
Object
}
func NewBitStringValueObject ¶
func NewBitStringValueObject(options ...Option) (*BitStringValueObject, error)
type CalendarObject ¶
type CalendarObject struct {
Object
}
func NewCalendarObject ¶
func NewCalendarObject(options ...Option) (*CalendarObject, error)
type ChannelObject ¶
type ChannelObject struct {
Object
}
func NewChannelObject ¶
func NewChannelObject(options ...Option) (*ChannelObject, error)
type CharacterStringValueObject ¶
type CharacterStringValueObject struct {
Object
}
func NewCharacterStringValueObject ¶
func NewCharacterStringValueObject(options ...Option) (*CharacterStringValueObject, error)
type CommandObject ¶
type CommandObject struct {
Object
}
func NewCommandObject ¶
func NewCommandObject(options ...Option) (*CommandObject, error)
type CredentialDataInputObject ¶
type CredentialDataInputObject struct {
Object
}
func NewCredentialDataInputObject ¶
func NewCredentialDataInputObject(options ...Option) (*CredentialDataInputObject, error)
type DatePatternValueObject ¶
type DatePatternValueObject struct {
Object
}
func NewDatePatternValueObject ¶
func NewDatePatternValueObject(options ...Option) (*DatePatternValueObject, error)
type DateTimePatternValueObject ¶
type DateTimePatternValueObject struct {
Object
}
func NewDateTimePatternValueObject ¶
func NewDateTimePatternValueObject(options ...Option) (*DateTimePatternValueObject, error)
type DateTimeValueObject ¶
type DateTimeValueObject struct {
Object
}
func NewDateTimeValueObject ¶
func NewDateTimeValueObject(options ...Option) (*DateTimeValueObject, error)
type DateValueObject ¶
type DateValueObject struct {
Object
}
func NewDateValueObject ¶
func NewDateValueObject(options ...Option) (*DateValueObject, error)
type DeviceObject ¶
type DeviceObject struct {
Object
}
func NewDeviceObject ¶
func NewDeviceObject(options ...Option) (*DeviceObject, error)
type ElevatorGroupObject ¶
type ElevatorGroupObject struct {
Object
}
func NewElevatorGroupObject ¶
func NewElevatorGroupObject(options ...Option) (*ElevatorGroupObject, error)
type EscalatorObject ¶
type EscalatorObject struct {
Object
}
func NewEscalatorObject ¶
func NewEscalatorObject(options ...Option) (*EscalatorObject, error)
type EventEnrollmentObject ¶
type EventEnrollmentObject struct {
Object
}
func NewEventEnrollmentObject ¶
func NewEventEnrollmentObject(options ...Option) (*EventEnrollmentObject, error)
type EventLogObject ¶
type EventLogObject struct {
Object
}
func NewEventLogObject ¶
func NewEventLogObject(options ...Option) (*EventLogObject, error)
type EventLogRecord ¶
type EventLogRecord struct { *Sequence // contains filtered or unexported fields }
func NewEventLogRecord ¶
func NewEventLogRecord(arg Arg) (*EventLogRecord, error)
type EventLogRecordLogDatum ¶
type EventLogRecordLogDatum struct { *Choice // contains filtered or unexported fields }
func NewEventLogRecordLogDatum ¶
func NewEventLogRecordLogDatum(arg Arg) (*EventLogRecordLogDatum, error)
type FileObject ¶
type FileObject struct {
Object
}
func NewFileObject ¶
func NewFileObject(options ...Option) (*FileObject, error)
type GlobalGroupObject ¶
type GlobalGroupObject struct {
Object
}
func NewGlobalGroupObject ¶
func NewGlobalGroupObject(options ...Option) (*GlobalGroupObject, error)
type GroupObject ¶
type GroupObject struct {
Object
}
func NewGroupObject ¶
func NewGroupObject(options ...Option) (*GroupObject, error)
type IntegerValueObject ¶
type IntegerValueObject struct {
Object
}
func NewIntegerValueObject ¶
func NewIntegerValueObject(options ...Option) (*IntegerValueObject, error)
type LargeAnalogValueObject ¶
type LargeAnalogValueObject struct {
Object
}
func NewLargeAnalogValueObject ¶
func NewLargeAnalogValueObject(options ...Option) (*LargeAnalogValueObject, error)
type LifeSafetyPointObject ¶
type LifeSafetyPointObject struct {
Object
}
func NewLifeSafetyPointObject ¶
func NewLifeSafetyPointObject(options ...Option) (*LifeSafetyPointObject, error)
type LifeSafetyZoneObject ¶
type LifeSafetyZoneObject struct {
Object
}
func NewLifeSafetyZoneObject ¶
func NewLifeSafetyZoneObject(options ...Option) (*LifeSafetyZoneObject, error)
type LiftObject ¶
type LiftObject struct {
Object
}
func NewLiftObject ¶
func NewLiftObject(options ...Option) (*LiftObject, error)
type LightingOutputObject ¶
type LightingOutputObject struct {
Object
}
func NewLightingOutputObject ¶
func NewLightingOutputObject(options ...Option) (*LightingOutputObject, error)
type LoadControlObject ¶
type LoadControlObject struct {
Object
}
func NewLoadControlObject ¶
func NewLoadControlObject(options ...Option) (*LoadControlObject, error)
type LoopObject ¶
type LoopObject struct {
Object
}
func NewLoopObject ¶
func NewLoopObject(options ...Option) (*LoopObject, error)
type MultiStateInputObject ¶
type MultiStateInputObject struct {
Object
}
func NewMultiStateInputObject ¶
func NewMultiStateInputObject(options ...Option) (*MultiStateInputObject, error)
type MultiStateOutputObject ¶
type MultiStateOutputObject struct {
Object
}
func NewMultiStateOutputObject ¶
func NewMultiStateOutputObject(options ...Option) (*MultiStateOutputObject, error)
type MultiStateValueObject ¶
type MultiStateValueObject struct {
Object
}
func NewMultiStateValueObject ¶
func NewMultiStateValueObject(options ...Option) (*MultiStateValueObject, error)
type NetworkPortObject ¶
type NetworkPortObject struct {
Object
}
func NewNetworkPortObject ¶
func NewNetworkPortObject(options ...Option) (*NetworkPortObject, error)
type NetworkSecurityObject ¶
type NetworkSecurityObject struct {
Object
}
func NewNetworkSecurityObject ¶
func NewNetworkSecurityObject(options ...Option) (*NetworkSecurityObject, error)
type NotificationClassObject ¶
type NotificationClassObject struct {
Object
}
func NewNotificationClassObject ¶
func NewNotificationClassObject(options ...Option) (*NotificationClassObject, error)
type NotificationForwarderObject ¶
type NotificationForwarderObject struct {
Object
}
func NewNotificationForwarderObject ¶
func NewNotificationForwarderObject(options ...Option) (*NotificationForwarderObject, error)
type Object ¶
type Object interface { Initializer DebugContentPrinter GetObjectType() string GetAttr(name string) (any, bool) SetAttr(name string, value any) AddProperty(prop Property) DeleteProperty(prop string) ReadProperty(Args, KWArgs) error WriteProperty(Args, KWArgs) error GetProperties() []Property Set_Properties(_properties map[string]Property) Get_Properties() map[string]Property Get_PropertiesMonitors() map[string][]func(old, new any) Get_Values() map[string]any }
TODO: big WIP
type ObjectIdentifierProperty ¶
type ObjectIdentifierProperty interface { ReadableProperty }
TODO: big WIP
func NewObjectIdentifierProperty ¶
func NewObjectIdentifierProperty(name string, klass func(Args, KWArgs) (PropertyKlass, error), options ...Option) ObjectIdentifierProperty
type OctetStringValueObject ¶
type OctetStringValueObject struct {
Object
}
func NewOctetStringValueObject ¶
func NewOctetStringValueObject(options ...Option) (*OctetStringValueObject, error)
type OptionalProperty ¶
type OptionalProperty interface { StandardProperty }
TODO: big WIP
func NewOptionalProperty ¶
func NewOptionalProperty(identifier string, klass func(Args, KWArgs) (PropertyKlass, error), options ...Option) OptionalProperty
type PositiveIntegerValueObject ¶
type PositiveIntegerValueObject struct {
Object
}
func NewPositiveIntegerValueObject ¶
func NewPositiveIntegerValueObject(options ...Option) (*PositiveIntegerValueObject, error)
type ProgramObject ¶
type ProgramObject struct {
Object
}
func NewProgramObject ¶
func NewProgramObject(options ...Option) (*ProgramObject, error)
type Property ¶
type Property interface { GetIdentifier() string GetDataType() any IsOptional() bool Get_Default() any IsMutable() bool ReadProperty(args Args, kwArgs KWArgs) error WriteProperty(args Args, kwArgs KWArgs) error }
TODO: big WIP
func NewProperty ¶
func NewProperty(identifier string, datatype func(Args, KWArgs) (PropertyKlass, error), options ...Option) Property
type PropertyError ¶
type PropertyError struct {
Key string
}
func (PropertyError) Error ¶
func (e PropertyError) Error() string
type PropertyKlass ¶
type PropertyKlass interface {
Encode(Arg) error
}
type PulseConverterObject ¶
type PulseConverterObject struct {
Object
}
func NewPulseConverterObject ¶
func NewPulseConverterObject(options ...Option) (*PulseConverterObject, error)
type ReadableProperty ¶
type ReadableProperty interface { StandardProperty }
TODO: big WIP
func NewReadableProperty ¶
func NewReadableProperty(name string, klass func(Args, KWArgs) (PropertyKlass, error), options ...Option) ReadableProperty
type ScheduleObject ¶
type ScheduleObject struct {
Object
}
func NewScheduleObject ¶
func NewScheduleObject(options ...Option) (*ScheduleObject, error)
type StagingObject ¶
type StagingObject struct {
Object
}
func NewStagingObject ¶
func NewStagingObject(options ...Option) (*StagingObject, error)
type StandardProperty ¶
type StandardProperty interface { Property }
TODO: big WIP
func NewStandardProperty ¶
func NewStandardProperty(identifier string, klass func(Args, KWArgs) (PropertyKlass, error), options ...Option) StandardProperty
type StructuredViewObject ¶
type StructuredViewObject struct {
Object
}
func NewStructuredViewObject ¶
func NewStructuredViewObject(options ...Option) (*StructuredViewObject, error)
type TimePatternValueObject ¶
type TimePatternValueObject struct {
Object
}
func NewTimePatternValueObject ¶
func NewTimePatternValueObject(options ...Option) (*TimePatternValueObject, error)
type TimeValueObject ¶
type TimeValueObject struct {
Object
}
func NewTimeValueObject ¶
func NewTimeValueObject(options ...Option) (*TimeValueObject, error)
type TimerObject ¶
type TimerObject struct {
Object
}
func NewTimerObject ¶
func NewTimerObject(options ...Option) (*TimerObject, error)
type TrendLogObject ¶
type TrendLogObject struct {
Object
}
func NewTrendLogObject ¶
func NewTrendLogObject(options ...Option) (*TrendLogObject, error)
type WritableProperty ¶
type WritableProperty interface { StandardProperty }
TODO: big WIP
func NewWritableProperty ¶
func NewWritableProperty(name string, klass func(Args, KWArgs) (PropertyKlass, error), opts ...func(property *_Property)) WritableProperty
Source Files
¶
- object.go
- object_AccessCredentialObject.go
- object_AccessDoorObject.go
- object_AccessPointObject.go
- object_AccessRightsObject.go
- object_AccessUserObject.go
- object_AccessZoneObject.go
- object_AccumulatorObject.go
- object_AlertEnrollmentObject.go
- object_AnalogInputObject.go
- object_AnalogOutputObject.go
- object_AnalogValueObject.go
- object_AuditLogObject.go
- object_AuditReporterObject.go
- object_AveragingObject.go
- object_BinaryInputObject.go
- object_BinaryLightingOutputObject.go
- object_BinaryOutputObject.go
- object_BinaryValueObject.go
- object_BitStringValueObject.go
- object_CalendarObject.go
- object_ChannelObject.go
- object_CharacterStringValueObject.go
- object_CommandObject.go
- object_CredentialDataInputObject.go
- object_DatePatternValueObject.go
- object_DateTimePatternValueObject.go
- object_DateTimeValueObject.go
- object_DateValueObject.go
- object_DeviceObject.go
- object_ElevatorGroupObject.go
- object_EscalatorObject.go
- object_EventEnrollmentObject.go
- object_EventLogObject.go
- object_EventLogRecord.go
- object_EventLogRecordLogDatum.go
- object_FileObject.go
- object_GlobalGroupObject.go
- object_GroupObject.go
- object_IntegerValueObject.go
- object_LargeAnalogValueObject.go
- object_LifeSafetyPointObject.go
- object_LifeSafetyZoneObject.go
- object_LiftObject.go
- object_LightingOutputObject.go
- object_LoadControlObject.go
- object_LoopObject.go
- object_MultiStateInputObject.go
- object_MultiStateOutputObject.go
- object_MultiStateValueObject.go
- object_NetworkPortObject.go
- object_NetworkSecurityObject.go
- object_NotificationClassObject.go
- object_NotificationForwarderObject.go
- object_Object.go
- object_ObjectIdentifierProperty.go
- object_OctetStringValueObject.go
- object_OptionalProperty.go
- object_PositiveIntegerValueObject.go
- object_ProgramObject.go
- object_Property.go
- object_PulseConverterObject.go
- object_ReadableProperty.go
- object_ScheduleObject.go
- object_StagingObject.go
- object_StandardProperty.go
- object_StructuredViewObject.go
- object_TimePatternValueObject.go
- object_TimeValueObject.go
- object_TimerObject.go
- object_TrendLogObject.go
- object_WritableProperty.go
Click to show internal directories.
Click to hide internal directories.