Files
gb-cms/device_db.go
2024-10-22 11:25:10 +08:00

24 lines
440 B
Go

package main
type DeviceDB interface {
LoadDevices() []*Device
RegisterDevice(device *Device) (error, bool)
UnRegisterDevice(id string)
KeepAliveDevice(device *Device)
LoadPlatforms() []GBPlatformRecord
AddPlatform(record GBPlatformRecord) error
//RemovePlatform(record GBPlatformRecord) (GBPlatformRecord, bool)
//
//PlatformList() []GBPlatformRecord
//
//BindPlatformChannel() bool
//
//UnbindPlatformChannel() bool
}