Documentation
¶
Index ¶
- func NewAuthService(adminID string, userList []users.User, orgList []auth.Org) domain.AuthClient
- func NewPublisher() messaging.Publisher
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthService ¶
NewAuthService creates mock of auth service client.
func NewPublisher ¶
NewPublisher returns mock message publisher.
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 ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.