server

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: MIT Imports: 7 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceConfiguration

type DeviceConfiguration struct {
	*Feature

	*internal.DeviceConfigurationCommon
}

func NewDeviceConfiguration

func NewDeviceConfiguration(localEntity spineapi.EntityLocalInterface) (*DeviceConfiguration, error)

func (*DeviceConfiguration) AddKeyValueDescription

Add a new description data set and return the keyId

will return nil if the data set could not be added

func (*DeviceConfiguration) UpdateKeyValueDataForFilter

Set or update data set for a filter Elements provided in deleteElements will be removed from the data set before the update

Will return an error if the data set could not be updated

func (*DeviceConfiguration) UpdateKeyValueDataForKeyId

Set or update data set for a keyId Elements provided in deleteElements will be removed from the data set before the update

Will return an error if the data set could not be updated

type DeviceDiagnosis

type DeviceDiagnosis struct {
	*Feature

	*internal.DeviceDiagnosisCommon
}

func NewDeviceDiagnosis

func NewDeviceDiagnosis(localEntity spineapi.EntityLocalInterface) (*DeviceDiagnosis, error)

func (*DeviceDiagnosis) SetLocalOperatingState added in v0.8.0

func (d *DeviceDiagnosis) SetLocalOperatingState(operatingState model.DeviceDiagnosisOperatingStateType)

set the local device diagnosis operating state

func (*DeviceDiagnosis) SetLocalState

func (d *DeviceDiagnosis) SetLocalState(state *model.DeviceDiagnosisStateDataType)

set the local device diagnosis state of the device

type ElectricalConnection

type ElectricalConnection struct {
	*Feature

	*internal.ElectricalConnectionCommon
}

func NewElectricalConnection

func NewElectricalConnection(localEntity spineapi.EntityLocalInterface) (*ElectricalConnection, error)

func (*ElectricalConnection) AddCharacteristic

Add a new characteristic data set

Note: ElectricalConnectionId and ParameterId must be set, CharacteristicId will be set automatically

Will return an error if the data set could not be added

func (*ElectricalConnection) AddDescription

func (e *ElectricalConnection) AddDescription(
	description model.ElectricalConnectionDescriptionDataType,
) error

Add a new description data set

NOTE: the electricalConnectionId has to be provided

will return nil if the data set could not be added

func (*ElectricalConnection) AddParameterDescription

Add a new parameter description data set and return the parameterId

NOTE: the electricalConnectionId has to be provided, parameterId shall not be provided

will return nil if the data set could not be added

func (*ElectricalConnection) GetOrAddIdForDescription added in v0.8.0

func (e *ElectricalConnection) GetOrAddIdForDescription(
	electricalConnectionDescription model.ElectricalConnectionDescriptionDataType,
) (*model.ElectricalConnectionIdType, error)

Get or add the id for a electrical connection with a given electricalConnectionDescription

NOTE: This can be used instead of AddDescription to be sure it exists only one id for the same description

will return the id for the electrical connection with the given description

func (*ElectricalConnection) UpdateCharacteristic

Update data set for a filter Elements provided in deleteElements will be removed from the data set before the update

// ElectricalConnectionId, ParameterId and CharacteristicId must be set

Will return an error if the data set could not be updated

func (*ElectricalConnection) UpdatePermittedValueSetForFilters added in v0.8.0

Set or update data set for a filter deleteSelector will trigger removal of matching items from the data set before the update deleteElement will limit the fields to be removed using Id

Will return an error if the data set could not be updated

func (*ElectricalConnection) UpdatePermittedValueSetForIds added in v0.8.0

func (e *ElectricalConnection) UpdatePermittedValueSetForIds(
	data []api.ElectricalConnectionPermittedValueSetForID,
) (resultErr error)

Set or update data set for a electricalConnectiontId Id provided in deleteId will trigger removal of matching items from the data set before the update Elements provided in deleteElement will limit the fields to be removed using Id

Will return an error if the data set could not be updated

type Feature

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

func NewFeature

func NewFeature(
	featureType model.FeatureTypeType,
	localEntity spineapi.EntityLocalInterface) (*Feature, error)

type LoadControl

type LoadControl struct {
	*Feature

	*internal.LoadControlCommon
}

func NewLoadControl

func NewLoadControl(localEntity spineapi.EntityLocalInterface) (*LoadControl, error)

func (*LoadControl) AddLimitDescription

func (l *LoadControl) AddLimitDescription(
	description model.LoadControlLimitDescriptionDataType,
) *model.LoadControlLimitIdType

Add a new description data set and return the limitId

NOTE: the limitId may not be provided

will return nil if the data set could not be added

func (*LoadControl) UpdateLimitDataForFilters added in v0.8.0

func (l *LoadControl) UpdateLimitDataForFilters(
	data []api.LoadControlLimitDataForFilter,
	deleteSelector *model.LoadControlLimitListDataSelectorsType,
	deleteElements *model.LoadControlLimitDataElementsType,
) (resultErr error)

Set or update data set for a filter deleteSelector will trigger removal of matching items from the data set before the update deleteElement will limit the fields to be removed using Id

Will return an error if the data set could not be updated

func (*LoadControl) UpdateLimitDataForIds added in v0.8.0

func (l *LoadControl) UpdateLimitDataForIds(
	data []api.LoadControlLimitDataForID,
) (resultErr error)

Set or update data set for a limitId

Will return an error if the data set could not be updated

type Measurement

type Measurement struct {
	*Feature

	*internal.MeasurementCommon
}

func NewMeasurement

func NewMeasurement(localEntity spineapi.EntityLocalInterface) (*Measurement, error)

func (*Measurement) AddDescription

func (m *Measurement) AddDescription(
	description model.MeasurementDescriptionDataType,
) *model.MeasurementIdType

Add a new parameter description data sett and return the measurementId

NOTE: the measurementId may not be provided

will return nil if the data set could not be added

func (*Measurement) UpdateDataForFilters added in v0.8.0

func (m *Measurement) UpdateDataForFilters(
	data []api.MeasurementDataForFilter,
	deleteSelector *model.MeasurementListDataSelectorsType,
	deleteElements *model.MeasurementDataElementsType,
) (resultErr error)

Set or update data set for a filter deleteSelector will trigger removal of matching items from the data set before the update deleteElement will limit the fields to be removed using Id

Will return an error if the data set could not be updated

func (*Measurement) UpdateDataForIds added in v0.8.0

func (m *Measurement) UpdateDataForIds(
	data []api.MeasurementDataForID,
) (resultErr error)

Set or update data set for a measurementId

Will return an error if the data set could not be updated

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL