66-ipv6-address-not-confirming-to-spec

- UUID is not random just a name generator needs changing to shortuuid
- When in multiple meshes there is no wait group
This commit is contained in:
Tim Beatham
2023-12-30 22:24:43 +00:00
parent 2e6aed6f93
commit 6954608c32
2 changed files with 24 additions and 4 deletions

View File

@@ -3,6 +3,7 @@ package lib
import (
"github.com/anandvarma/namegen"
"github.com/google/uuid"
"github.com/lithammer/shortuuid"
)
// IdGenerator generates unique ids
@@ -19,6 +20,14 @@ func (g *UUIDGenerator) GetId() (string, error) {
return id.String(), nil
}
type ShortIDGenerator struct {
}
func (g *ShortIDGenerator) GetId() (string, error) {
id := shortuuid.New()
return id, nil
}
type IDNameGenerator struct {
}