mirror of
https://github.com/mainflux/mainflux.git
synced 2025-04-29 13:49:28 +08:00
20 lines
316 B
Go
20 lines
316 B
Go
![]() |
package mocks
|
||
|
|
||
|
import (
|
||
|
"github.com/mainflux/mainflux/mqtt/redis"
|
||
|
)
|
||
|
|
||
|
type MockEventStore struct{}
|
||
|
|
||
|
func NewEventStore() redis.EventStore {
|
||
|
return MockEventStore{}
|
||
|
}
|
||
|
|
||
|
func (es MockEventStore) Connect(clientID string) error {
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (es MockEventStore) Disconnect(clientID string) error {
|
||
|
return nil
|
||
|
}
|