mocks

package
v0.0.0-...-81dd437 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 12 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) mainflux.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, channels map[string]things.Channel, auth mainflux.AuthServiceClient) things.Service

NewThingsService returns Mainflux Things service mock. Only methods used by SDK are mocked.

func NewThingsServiceClient

func NewThingsServiceClient(channels map[string]string, things map[string]string, groups map[string]things.Group) mainflux.ThingsServiceClient

NewThingsService 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