Debian Codegraph @

savers/savers.go

raw
1 // This package provides savers for the package github.com/twinj/uuid RFC4122 and DCE 1.1 UUIDs.
2 //
3 // Use this package for V1 and V2 UUIDs or your own UUID implementation.
4 //
5 // By applying a savers you can store any UUID generation data in a
6 // non volatile store, the purpose of which is to save the clock sequence,
7 // last timestamp and the last node id used from the last generated UUID.
8 //
9 // The Saver Save method is called every time you generate a V1 or V2 UUID.
10 //
11 // You do not have to register a savers. The code will generate a random
12 // clock sequence or node id if required.
13 // The example code in the specification was used as reference
14 // for design.
15 //
16 // Copyright (C) 2016 [email protected] 2014 MIT licence
17 package savers