mocks

package
v0.0.0-...-8a250b4 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ServiceErrToken = "unavailable"

ServiceErrToken is used to simulate internal server error.

Variables

This section is empty.

Functions

func NewService

func NewService(subs map[string]*ws.Channel, pubError error) ws.Service

NewService returns mock message publisher.

func NewThingsClient

func NewThingsClient(data map[string]string) mainflux.ThingsServiceClient

NewThingsClient returns mock implementation of things service client.

Types

This section is empty.

Jump to

Keyboard shortcuts

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