mocks

package
v0.46.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: Apache-2.0 Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEmailer added in v0.34.1

func NewEmailer() things.Emailer

NewEmailer provides emailer instance for the test

func NewGroupCache added in v0.25.0

func NewGroupCache() things.GroupCache

NewGroupCache returns mock cache instance.

func NewGroupMembershipsRepository added in v0.29.0

func NewGroupMembershipsRepository() things.GroupMembershipsRepository

NewGroupMembershipsRepository returns mock of membership repository

func NewGroupRepository

func NewGroupRepository(groupMembershipsRepo things.GroupMembershipsRepository) things.GroupRepository

NewGroupRepository creates in-memory user repository

func NewProfileCache added in v0.24.0

func NewProfileCache() things.ProfileCache

NewProfileCache returns mock cache instance.

func NewProfileRepository added in v0.24.0

func NewProfileRepository(repo things.ThingRepository) things.ProfileRepository

NewProfileRepository creates in-memory profile repository.

func NewThingCache

func NewThingCache() things.ThingCache

NewThingCache returns mock cache instance.

func NewThingRepository

func NewThingRepository() things.ThingRepository

NewThingRepository creates in-memory thing repository.

func NewUsersService added in v0.26.0

func NewUsersService(usersByID map[string]users.User, usersByEmails map[string]users.User) domain.UsersClient

Types

This section is empty.

Jump to

Keyboard shortcuts

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