Mainflux.mainflux/mqtt/mocks/redis.go

22 lines
370 B
Go

package mocks
import (
"context"
"github.com/mainflux/mainflux/mqtt/redis"
)
type MockEventStore struct{}
func NewEventStore() redis.EventStore {
return MockEventStore{}
}
func (es MockEventStore) Connect(ctx context.Context, clientID string) error {
return nil
}
func (es MockEventStore) Disconnect(ctx context.Context, clientID string) error {
return nil
}