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

17 lines
345 B
Go
Raw Normal View History

package mocks
import "github.com/mainflux/mainflux"
var _ (mainflux.MessagePublisher) = (*mockPublisher)(nil)
type mockPublisher struct{}
// NewPublisher returns mock message publisher.
func NewPublisher() mainflux.MessagePublisher {
return mockPublisher{}
}
func (pub mockPublisher) Publish(msg mainflux.RawMessage) error {
return nil
}