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: 5 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 NewEmailer

func NewEmailer() users.Emailer

NewEmailer provides emailer instance for the test

func NewGroupRepository

func NewGroupRepository() users.GroupRepository

NewGroupRepository creates in-memory user repository

func NewHasher

func NewHasher() users.Hasher

NewHasher creates "no-op" hasher for test purposes. This implementation will return secrets without changing them.

func NewUserRepository

func NewUserRepository() users.UserRepository

NewUserRepository creates in-memory user repository

Types

This section is empty.

Jump to

Keyboard shortcuts

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