Documentation
¶
Index ¶
- func NewAuthService(adminID string, userList []users.User, orgList []auth.Org) domain.AuthClient
- func NewReadersClient() domain.ReadersClient
- func NewThingsService(things map[string]things.Thing, profiles map[string]things.Profile, ...) things.Service
- func NewThingsServiceClient(profiles map[string]domain.Profile, things map[string]domain.Thing, ...) domain.ThingsClient
- func SortItems[T any](order, dir string, items []T, getFields func(i int) (string, string)) []T
- type Publisher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthService ¶
NewAuthService creates mock of auth service client.
func NewReadersClient ¶ added in v0.40.0
func NewReadersClient() domain.ReadersClient
NewReadersClient returns a no-op ReadersClient mock.
func NewThingsService ¶
func NewThingsService(things map[string]things.Thing, profiles map[string]things.Profile, auth domain.AuthClient) things.Service
NewThingsService returns Mainflux Things service mock. Only methods used by SDK are mocked.
Types ¶
type Publisher ¶ added in v0.42.0
type Publisher interface {
messaging.CommandPublisher
messaging.MessageDispatcher
}
Publisher covers the methods this mock's callers (http/mqtt/modbus/downlinks, pkg/sdk tests) use.
Click to show internal directories.
Click to hide internal directories.