Documentation ¶
Overview ¶
Package ws contains the domain concept definitions needed to support Mainflux ws adapter service functionality.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrFailedMessagePublish indicates that message publishing failed. ErrFailedMessagePublish = errors.New("failed to publish message") // ErrFailedSubscription indicates that client couldn't subscribe to specified channel. ErrFailedSubscription = errors.New("failed to subscribe to a channel") // ErrFailedConnection indicates that service couldn't connect to message broker. ErrFailedConnection = errors.New("failed to connect to message broker") )
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct { Messages chan mainflux.RawMessage Closed chan bool // contains filtered or unexported fields }
Channel is used for receiving and sending messages.
func (*Channel) Send ¶
func (channel *Channel) Send(msg mainflux.RawMessage)
Send method send message over Messages channel.
Directories ¶
Path | Synopsis |
---|---|
Package api contains API-related concerns: endpoint definitions, middlewares and all resource representations.
|
Package api contains API-related concerns: endpoint definitions, middlewares and all resource representations. |
Package nats contains NATS message publisher implementation.
|
Package nats contains NATS message publisher implementation. |
Click to show internal directories.
Click to hide internal directories.