Documentation ¶
Index ¶
- func NewAuth(users map[string]string, authz map[string][]SubjectSet) mainflux.AuthServiceClient
- func NewClient(key map[string]string, conns map[string]string) auth.Client
- func NewEventStore() redis.EventStore
- func NewRepo(subs map[string][]mqtt.Subscription) mqtt.Repository
- type MockClient
- type MockEventStore
- type SubjectSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuth ¶
func NewAuth(users map[string]string, authz map[string][]SubjectSet) mainflux.AuthServiceClient
NewAuth creates mock of auth service.
func NewEventStore ¶
func NewEventStore() redis.EventStore
func NewRepo ¶
func NewRepo(subs map[string][]mqtt.Subscription) mqtt.Repository
Types ¶
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
func (MockClient) GetConnByKey ¶
func (cli MockClient) GetConnByKey(ctx context.Context, key string) (mainflux.ConnByKeyRes, error)
type MockEventStore ¶
type MockEventStore struct{}
func (MockEventStore) Connect ¶
func (es MockEventStore) Connect(clientID string) error
func (MockEventStore) Disconnect ¶
func (es MockEventStore) Disconnect(clientID string) error
type SubjectSet ¶
Click to show internal directories.
Click to hide internal directories.