Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Characteristic ¶
type Characteristic struct { Id string `json:"id"` Name string `json:"name"` Type Type `json:"type"` MinValue interface{} `json:"min_value,omitempty"` MaxValue interface{} `json:"max_value,omitempty"` Value interface{} `json:"value,omitempty"` SubCharacteristics []Characteristic `json:"sub_characteristics"` RdfType string `json:"rdf_type"` }
type Content ¶
type Content struct { Id string `json:"id"` ContentVariable ContentVariable `json:"content_variable"` Serialization string `json:"serialization"` ProtocolSegmentId string `json:"protocol_segment_id"` }
type ContentVariable ¶
type ContentVariable struct { Id string `json:"id"` Name string `json:"name"` Type Type `json:"type"` SubContentVariables []ContentVariable `json:"sub_content_variables"` CharacteristicId string `json:"characteristic_id"` Value interface{} `json:"value"` SerializationOptions []string `json:"serialization_options"` UnitReference string `json:"unit_reference,omitempty"` }
type DeviceClass ¶
type DeviceGroup ¶
type DeviceGroup struct { Id string `json:"id"` Name string `json:"name"` Image string `json:"image"` Criteria []DeviceGroupFilterCriteria `json:"criteria"` DeviceIds []string `json:"device_ids"` CriteriaShort []string `json:"criteria_short,omitempty"` }
func (*DeviceGroup) SetShortCriteria ¶
func (this *DeviceGroup) SetShortCriteria()
type DeviceGroupFilterCriteria ¶
type DeviceGroupFilterCriteria struct { Interaction Interaction `json:"interaction"` FunctionId string `json:"function_id"` AspectId string `json:"aspect_id"` DeviceClassId string `json:"device_class_id"` }
func (DeviceGroupFilterCriteria) Short ¶
func (this DeviceGroupFilterCriteria) Short() string
type DeviceType ¶
type Interaction ¶
type Interaction string
const ( EVENT Interaction = "event" REQUEST Interaction = "request" EVENT_AND_REQUEST Interaction = "event+request" )
type Protocol ¶
type Protocol struct { Id string `json:"id"` Name string `json:"name"` Handler string `json:"handler"` ProtocolSegments []ProtocolSegment `json:"protocol_segments"` }
type ProtocolSegment ¶
type Service ¶
type Service struct { Id string `json:"id"` LocalId string `json:"local_id"` Name string `json:"name"` Description string `json:"description"` Interaction Interaction `json:"interaction"` AspectIds []string `json:"aspect_ids"` ProtocolId string `json:"protocol_id"` Inputs []Content `json:"inputs"` Outputs []Content `json:"outputs"` FunctionIds []string `json:"function_ids"` Attributes []Attribute `json:"attributes"` RdfType string `json:"rdf_type"` }
Click to show internal directories.
Click to hide internal directories.