Files
archived-rttys/client/client.go
T
Jianhui Zhao 1db48db9e5 fix: #67
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
2021-02-02 19:30:28 +08:00

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()
}