Documentation ¶
Overview ¶
Package gen contains functions for generating random base insolar types.
Index ¶
- func ID() insolar.ID
- func IDWithPulse(pn insolar.PulseNumber) insolar.ID
- func JetID() insolar.JetID
- func PulseNumber() insolar.PulseNumber
- func RecordReference() insolar.Reference
- func Reference() insolar.Reference
- func ReferenceWithPulse(pn insolar.PulseNumber) insolar.Reference
- func Signature(size int) []byte
- func StringFromBytes(symbols []byte, maxcount int) string
- func UniqueIDs(a int) []insolar.ID
- func UniqueJetIDs(a int) []insolar.JetID
- func UniqueRecordReferences(a int) []insolar.Reference
- func UniqueReferences(a int) []insolar.Reference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IDWithPulse ¶
func IDWithPulse(pn insolar.PulseNumber) insolar.ID
IDWithPulse generates random id with provided pulse.
func PulseNumber ¶
func PulseNumber() insolar.PulseNumber
PulseNumber generates random pulse number (excluding special cases).
func RecordReference ¶ added in v0.9.1
RecordReference generates random record reference.
func ReferenceWithPulse ¶ added in v0.9.1
func ReferenceWithPulse(pn insolar.PulseNumber) insolar.Reference
func StringFromBytes ¶
StringFromBytes generates random id with length from 0 to maxcount randomly filled by provided symbols.
func UniqueJetIDs ¶
UniqueJetIDs generates several different jet ids
func UniqueRecordReferences ¶ added in v0.9.3
UniqueReferences generates multiple random unique References.
func UniqueReferences ¶
UniqueReferences generates multiple random unique References.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.