frostfs-node/pkg/local_object_storage/blobovnicza/id.go
Leonard Lyubich 2f61d8d63c [#211] localstorage: Define blobovnicza ID
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-12-11 17:19:37 +03:00

17 lines
299 B
Go

package blobovnicza
import (
"github.com/google/uuid"
)
// ID represents Blobovnicza identifier.
type ID uuid.UUID
// NewIDFromUUID constructs ID from UUID instance.
func NewIDFromUUID(uid uuid.UUID) *ID {
return (*ID)(&uid)
}
func (id ID) String() string {
return (uuid.UUID)(id).String()
}