Documentation
¶
Index ¶
- func NewAuthService(adminID string, userList []users.User, orgList []auth.Org) protomfx.AuthServiceClient
- func NewPublisher() messaging.Publisher
- func NewThingsService(things map[string]things.Thing, profiles map[string]things.Profile, ...) things.Service
- func NewThingsServiceClient(profiles map[string]things.Profile, things map[string]things.Thing, ...) protomfx.ThingsServiceClient
- 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 ¶
func NewAuthService(adminID string, userList []users.User, orgList []auth.Org) protomfx.AuthServiceClient
NewAuthService creates mock of users service.
func NewPublisher ¶
NewPublisher returns mock message publisher.
func NewThingsService ¶
func NewThingsService(things map[string]things.Thing, profiles map[string]things.Profile, auth protomfx.AuthServiceClient) 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.