mocks

package
v0.23.2 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 NewGroupRepository

func NewGroupRepository() things.GroupRepository

NewGroupRepository creates in-memory user repository

func NewRolesRepository

func NewRolesRepository() things.RolesRepository

NewRolesRepository returns mock of policies 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