mocks

package
v0.31.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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

func NewPublisher() messaging.Publisher

NewPublisher returns mock message publisher.

func NewRulesServiceClient added in v0.28.0

func NewRulesServiceClient() protomfx.RulesServiceClient

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.

func NewThingsServiceClient

func NewThingsServiceClient(profiles map[string]things.Profile, things map[string]things.Thing, groups map[string]things.Group) protomfx.ThingsServiceClient

NewThingsServiceClient returns mock implementation of things service

func SortItems added in v0.26.0

func SortItems[T any](order, dir string, items []T, getFields func(i int) (string, string)) []T

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL