mocks

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 13 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) protomfx.AuthServiceClient

NewAuthService creates mock of users service.

func NewPublisher

func NewPublisher() messaging.Publisher

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.

func NewThingsServiceClient

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

NewThingsServiceClient returns mock implementation of things service

Types

This section is empty.

Jump to

Keyboard shortcuts

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