Documentation ¶
Index ¶
Constants ¶
View Source
const (
IDBytesLen = 16
)
Variables ¶
This section is empty.
Functions ¶
func UUIDToID ¶
func UUIDToID(uuid string) (v [IDBytesLen]byte, err error)
TODO: leverage a full functional UUID library
Types ¶
type CounterHash ¶
func NewTimeHash ¶
func NewTimeHash(baseHash StringHash) CounterHash
type HMACHash ¶
type HMACHash struct { }
type ID ¶
type ID struct { String string Bytes [IDBytesLen]byte // contains filtered or unexported fields }
The ID of en entity, in the form of an UUID.
type TimeHash ¶
type TimeHash struct {
// contains filtered or unexported fields
}
type TimedUserSet ¶
type TimedUserSet struct {
// contains filtered or unexported fields
}
func (*TimedUserSet) AddUser ¶
func (us *TimedUserSet) AddUser(user User) error
Click to show internal directories.
Click to hide internal directories.