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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthService

func NewAuthService(users map[string]string, authzDB map[string][]SubjectSet) mainflux.AuthServiceClient

NewAuthService creates mock of users service.

func NewEmailer

func NewEmailer() users.Emailer

NewEmailer provides emailer instance for the test

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

type SubjectSet

type SubjectSet struct {
	Object   string
	Relation string
}

Jump to

Keyboard shortcuts

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