Documentation ¶
Index ¶
- Variables
- type Context
- type Map
- func (m *Map) Clear()
- func (m *Map) DeleteDevice(device bactypes.Device)
- func (m *Map) DeleteDeviceByID(id bactypes.ObjectInstance)
- func (m *Map) DeleteDeviceByName(name string)
- func (m *Map) DeleteObject(device bactypes.Device, object bactypes.Object)
- func (m *Map) DeleteObjectByID(device bactypes.Device, id bactypes.ObjectID)
- func (m *Map) DeleteObjectByName(device bactypes.Device, name string)
- func (m *Map) GetDeviceDefaultWritePriority(id bactypes.ObjectInstance) uint
- func (m *Map) ListObjects(device bactypes.Device) ([]bactypes.Object, error)
- func (m *Map) LookupDeviceByID(id bactypes.ObjectInstance) (bactypes.Device, error)
- func (m *Map) LookupDeviceByName(name string) (bactypes.Device, error)
- func (m *Map) LookupObjectByID(device bactypes.Device, id bactypes.ObjectID) (bactypes.Object, error)
- func (m *Map) LookupObjectByName(device bactypes.Device, name string) (bactypes.Object, error)
- func (m *Map) StoreDevice(name string, d bactypes.Device, defaultWritePriority uint)
- func (m *Map) StoreObject(d bactypes.Device, name string, o bactypes.Object) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("not found") ErrUnknownDevice = fmt.Errorf("device %w", ErrNotFound) )
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context interface { ListObjects(device bactypes.Device) ([]bactypes.Object, error) LookupDeviceByID(id bactypes.ObjectInstance) (bactypes.Device, error) LookupDeviceByName(name string) (bactypes.Device, error) LookupObjectByID(device bactypes.Device, id bactypes.ObjectID) (bactypes.Object, error) LookupObjectByName(device bactypes.Device, name string) (bactypes.Object, error) GetDeviceDefaultWritePriority(id bactypes.ObjectInstance) uint }
Context describes what we know about a bacnet system.
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
Map holds information about devices and objects. Map implements Context.
func (*Map) DeleteDevice ¶
func (*Map) DeleteDeviceByID ¶
func (m *Map) DeleteDeviceByID(id bactypes.ObjectInstance)
func (*Map) DeleteDeviceByName ¶
func (*Map) DeleteObject ¶
func (*Map) DeleteObjectByID ¶
func (*Map) DeleteObjectByName ¶
func (*Map) GetDeviceDefaultWritePriority ¶
func (m *Map) GetDeviceDefaultWritePriority(id bactypes.ObjectInstance) uint
func (*Map) ListObjects ¶
func (*Map) LookupDeviceByID ¶
func (*Map) LookupDeviceByName ¶
func (*Map) LookupObjectByID ¶
func (*Map) LookupObjectByName ¶
func (*Map) StoreDevice ¶
Click to show internal directories.
Click to hide internal directories.