mirror of
https://github.com/zhaojh329/rttys.git
synced 2026-02-27 09:53:21 +08:00
1db48db9e5
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
15 lines
268 B
Go
15 lines
268 B
Go
package client
|
|
|
|
// Client abstract device and user
|
|
type Client interface {
|
|
WriteMsg(typ int, data []byte)
|
|
|
|
// For users, return the device ID that the user wants to access
|
|
// For devices, return the ID of the device
|
|
DeviceID() string
|
|
|
|
IsDevice() bool
|
|
|
|
Close()
|
|
}
|