Documentation ¶
Overview ¶
Package http contains the domain concept definitions needed to support Magistrala HTTP Adapter functionality.
Index ¶
Constants ¶
View Source
const ( LogInfoConnected = "connected with thing_key %s" // ThingPrefix represents the key prefix for Thing authentication scheme. ThingPrefix = "Thing " LogInfoPublished = "published with client_id %s to the topic %s" )
Log message formats.
Variables ¶
View Source
var ( ErrMalformedSubtopic = errors.New("malformed subtopic") ErrClientNotInitialized = errors.New("client is not initialized") ErrMalformedTopic = errors.New("malformed topic") ErrMissingTopicPub = errors.New("failed to publish due to missing topic") ErrMissingTopicSub = errors.New("failed to subscribe due to missing topic") ErrFailedConnect = errors.New("failed to connect") ErrFailedPublish = errors.New("failed to publish") ErrFailedParseSubtopic = errors.New("failed to parse subtopic") ErrFailedPublishConnectEvent = errors.New("failed to publish connect event") ErrFailedPublishToMsgBroker = errors.New("failed to publish to magistrala message broker") )
Error wrappers for MQTT errors.
Functions ¶
func NewHandler ¶
func NewHandler(publisher messaging.Publisher, logger *slog.Logger, authClient magistrala.AuthzServiceClient) session.Handler
NewHandler creates new Handler entity.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.