1
0
mirror of https://github.com/mainflux/mainflux.git synced 2025-04-28 13:48:49 +08:00
Mainflux.mainflux/publisher.go

18 lines
371 B
Go
Raw Normal View History

//
2019-07-18 15:01:09 +02:00
// Copyright (c) 2019
// Mainflux
//
// SPDX-License-Identifier: Apache-2.0
//
package mainflux
2019-07-18 15:01:09 +02:00
import context "context"
// MessagePublisher specifies a message publishing API.
type MessagePublisher interface {
// Publishes message to the stream. A non-nil error is returned to indicate
// operation failure.
2019-07-18 15:01:09 +02:00
Publish(context.Context, string, RawMessage) error
}