Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDeviceTypesForProtocol ¶
func GetDeviceTypesForProtocol(t types.DeviceProtocolType) []types.DeviceType
Types ¶
type DeviceProtocol ¶
type DeviceProtocol interface {
GetDeviceType() types.DeviceType
SetDeviceType(types.DeviceType)
GetProtocolType() types.DeviceProtocolType
GetDeviceID() string
Login(*bufio.Reader) ([]byte, int, error)
ConsumeStream(*bufio.Reader, io.Writer, store.Store) error
SendCommandToDevice(writer io.Writer, command string) error
}
func MakeProtocolForType ¶
func MakeProtocolForType(t types.DeviceProtocolType) DeviceProtocol
Click to show internal directories.
Click to hide internal directories.