github.com/GeniusesGroup/libgo@v0.0.0-20220929090155-5ff932cb408e/protocol/uuid.go (about)

     1  /* For license and copyright information please see LEGAL file in repository */
     2  
     3  package protocol
     4  
     5  type ID uint64
     6  
     7  type UUIDHash interface {
     8  	UUID() [32]byte // Hash of a record data
     9  	ID() ID         // first 64bit of UUID
    10  
    11  	IDasString() string // Base64 of ID
    12  
    13  	Stringer // Base64 of UUID
    14  }
    15  
    16  type UUID interface {
    17  	UUID() [16]byte
    18  	ExistenceTime() Time
    19  	ID() [4]byte
    20  
    21  	Stringer // Base64 of UUID
    22  }