protocol

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeMQTT     = "mqtt"
	TypeSerial   = "serial"
	TypeEthernet = "ethernet"
	TypeHttp     = "http"
)

Protocol Types

View Source
const (
	// mqtt requirements
	KeyMqttTopic = "mqtt_topic"
	KeyMqttQoS   = "mqtt_qos"

	// http requirements
	KeyHTTPRequestConf  = "http_request_conf"
	KeyHTTPResponseConf = "http_response_conf"
)

Others map known keys

Variables

This section is empty.

Functions

This section is empty.

Types

type Protocol

type Protocol interface {
	Write(rawMsg *msgTY.RawMessage) error // write a message on a specified protocol
	Close() error                         // close the protocol connection
}

Protocol interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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