Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Name ... Name = "mqtt_bridge" // FuncEntityAction ... FuncEntityAction = "entityAction" Version = "0.0.1" )
View Source
const ( DirectionIn = Direction("in") DirectionOut = Direction("out") DirectionBoth = Direction("both") )
View Source
const ( AttrConnected = "connected" AttrOffline = "offline" AttrKeepAlive = "keepAlive" AttrPingTimeout = "pingTimeout" AttrBroker = "broker" AttrClientID = "clientID" AttrConnectTimeout = "connectTimeout" AttrCleanSession = "cleanSession" AttrUsername = "username" AttrPassword = "password" AttrQos = "qos" AttrDirection = "direction" AttrTopics = "topics" )
Variables ¶
View Source
var F embed.FS
Functions ¶
Types ¶
type Actor ¶
type Actor struct { supervisor.BaseActor // contains filtered or unexported fields }
Actor ...
func NewActor ¶
func NewActor(entity *m.Entity, service supervisor.Service) (actor *Actor)
NewActor ...
func (*Actor) SetState ¶
func (e *Actor) SetState(params supervisor.EntityStateParams) error
SetState ...
type Config ¶
type Config struct { KeepAlive int PingTimeout int Broker string ClientID string ConnectTimeout int CleanSession bool Username string Password string Qos byte Direction Direction Topics []string }
Config ...
type MqttBridge ¶
type MqttBridge struct {
// contains filtered or unexported fields
}
func NewMqttBridge ¶
Click to show internal directories.
Click to hide internal directories.