mirror of
https://github.com/mainflux/mainflux.git
synced 2025-04-26 13:48:53 +08:00

* MF-1154 - Move UUID provider to project root Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Use naming uuidProvider/up instead of identityProvider/idp Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Fix typo Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Mutualize UUID mocks Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Move uuid into pkg directory Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
11 lines
246 B
Go
11 lines
246 B
Go
// Copyright (c) Mainflux
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package mainflux
|
|
|
|
// UUIDProvider specifies an API for generating unique identifiers.
|
|
type UUIDProvider interface {
|
|
// ID generates the unique identifier.
|
|
ID() (string, error)
|
|
}
|