protocols

package
v0.0.0-...-e4ed9a4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2025 License: AGPL-3.0 Imports: 11 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL