mocks

package
v0.0.0-...-f17446d Latest Latest
Warning

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

Go to latest
Published: May 14, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthService

func NewAuthService(users map[string]string, policies map[string][]MockSubjectSet) mainflux.AuthServiceClient

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.

type MockSubjectSet

type MockSubjectSet struct {
	Object   string
	Relation string
}

Jump to

Keyboard shortcuts

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