Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultHashIterations = 1
Variables ¶
View Source
var ErrInvalidStatus = errors.New("Invalid status value provided.")
Functions ¶
This section is empty.
Types ¶
type Hash ¶
type Hash struct {
Value string
}
Hash field which can be embedded into high level models. It represents some random unique value.
func NewRandomHash ¶
NewHash creates a new Hash. A length of Hash.Value depends on the iterations number. If iteration is equal to 1 resulting Hash.Value will be 36. If it is 2, resulting Hash.Value will be 72, end so on.
Click to show internal directories.
Click to hide internal directories.