Mainflux.mainflux/publisher.go

14 lines
354 B
Go
Raw Normal View History

// Copyright (c) Mainflux
// SPDX-License-Identifier: Apache-2.0
package mainflux
2019-07-18 21:01:09 +08: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 21:01:09 +08:00
Publish(context.Context, string, RawMessage) error
}