mirror of
https://github.com/mainflux/mainflux.git
synced 2025-04-28 13:48:49 +08:00
14 lines
330 B
Go
14 lines
330 B
Go
![]() |
// Copyright (c) Mainflux
|
||
|
// SPDX-License-Identifier: Apache-2.0
|
||
|
|
||
|
package twins
|
||
|
|
||
|
// IdentityProvider specifies an API for generating unique identifiers.
|
||
|
type IdentityProvider interface {
|
||
|
// ID generates the unique identifier.
|
||
|
ID() (string, error)
|
||
|
|
||
|
// IsValid checks whether string is a valid uuid4.
|
||
|
IsValid(u4 string) error
|
||
|
}
|