Documentation ¶
Index ¶
- Variables
- func IgnoreError(fn func() error)
- func RandDate(rnd *rand.Rand) time.Time
- func RandDateStr(rnd *rand.Rand) string
- func RandIPV4Address(rnd *rand.Rand, v, pos int) string
- func RandInt2(rnd *rand.Rand, min, max int) int
- func RandString(rnd *rand.Rand, ln int) string
- func RandTime(rnd *rand.Rand) int64
- func RandTimestamp(rnd *rand.Rand) int64
- func SetUnderTest()
- func UUIDFromTime(rnd *rand.Rand) string
Constants ¶
This section is empty.
Variables ¶
View Source
var UnderTest = false
Functions ¶
func IgnoreError ¶
func IgnoreError(fn func() error)
func RandDateStr ¶ added in v1.8.5
RandDateStr generates time in string representation it is done in such way because we wanted to make JSON statement to work but scylla supports only string representation of date in JSON format
func RandTime ¶
According to the CQL binary protocol, time is an int64 in range [0;86399999999999] https://github.com/apache/cassandra/blob/f5df4b219e063cb24b9cc0c22b6e614506b8d903/doc/native_protocol_v4.spec#L941 An 8 byte two's complement long representing nanoseconds since midnight. Valid values are in the range 0 to 86399999999999
func RandTimestamp ¶ added in v1.8.5
func SetUnderTest ¶
func SetUnderTest()
func UUIDFromTime ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.