mirror of
https://github.com/lkmio/gb-cms.git
synced 2025-12-24 11:51:52 +08:00
24 lines
440 B
Go
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
|
|
}
|