mocks

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthService

func NewAuthService(users map[string]string) mainflux.AuthNServiceClient

NewAuthService creates mock of users service.

func NewChannelCache

func NewChannelCache() things.ChannelCache

NewChannelCache returns mock cache instance.

func NewChannelRepository

func NewChannelRepository(repo things.ThingRepository, tconns chan Connection) things.ChannelRepository

NewChannelRepository creates in-memory channel repository.

func NewThingCache

func NewThingCache() things.ThingCache

NewThingCache returns mock cache instance.

func NewThingRepository

func NewThingRepository(conns chan Connection) things.ThingRepository

NewThingRepository creates in-memory thing repository.

Types

type Connection

type Connection struct {
	// contains filtered or unexported fields
}

Connection represents connection between channel and thing that is used for testing purposes.

Jump to

Keyboard shortcuts

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