Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddTransport ¶
AddTransport adds new transport into registry
func DeleteTransport ¶
DeleteTransport deletes previously registered transport.
func LoadTransports ¶
LoadTransports reads and parses YAML configuration from file
func MustAddTransportType ¶
func MustAddTransportType(typeName string, f transportCreateFunc)
MustAddTransportType register new transport type
func SaveTransports ¶
SaveTransports writes all registered transports in YAML format using writer
Types ¶
type Transport ¶
type Transport interface { GetName() string GetTypeName() string Start() error Stop() Receive() <-chan []byte Send([]byte) error }
Transport represent a OpenIoT transport layer, e.g. UDP, TCP, USB, etc
func FindTransportByName ¶
FindTransportByName lookups device by name. Returns nil if not found.
func GetAllTransports ¶
func GetAllTransports() []Transport
GetAllTransports returns all registered transports
Click to show internal directories.
Click to hide internal directories.