Documentation ¶
Overview ¶
Package types contains various helper types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BitmapIndexOptions ¶
type BitmapIndexOptions struct { UniqueKey string UniqueKeyTransformation UniqueKeyTransformation }
type Decimal ¶ added in v1.2.0
type Decimal struct {
// contains filtered or unexported fields
}
Decimal is a wrapper for Hazelcast Decimal.
func NewDecimal ¶ added in v1.2.0
NewDecimal creates and returns a Decimal value with the given big int and scale. Scale must be nonnegative and must be less or equal to math.MaxInt32. otherwise NewDecimal panics.
func (Decimal) Scale ¶ added in v1.2.0
Scale returns the scale of the decimal. The returned value is nonnegative and less or equal to math.MaxInt32.
func (Decimal) UnscaledValue ¶ added in v1.2.0
UnscaledValue returns the unscaled value of the decimal.
type DistributedObjectInfo ¶ added in v1.1.0
type IndexConfig ¶
type IndexConfig struct { Name string Attributes []string BitmapIndexOptions BitmapIndexOptions Type IndexType }
type LocalDateTime ¶ added in v1.2.0
LocalDateTime is the date and time with local timezone.
type OffsetDateTime ¶ added in v1.2.0
OffsetDateTime is the date and time with a timezone.
type SimpleEntryView ¶
type SimpleEntryView struct { // TODO: export fields Key interface{} Value interface{} Cost int64 CreationTime int64 ExpirationTime int64 Hits int64 LastAccessTime int64 LastStoredTime int64 LastUpdateTime int64 Version int64 TTL int64 MaxIdle int64 }
SimpleEntryView represents a readonly view of a map entry.
func NewSimpleEntryView ¶
func NewSimpleEntryView(key, value interface{}, cost, creationTime, expirationTime, hits, lastAccessTime, lastStoredTime, lastUpdateTime, version, ttl, maxIdle int64) *SimpleEntryView
type UUID ¶
type UUID struct {
// contains filtered or unexported fields
}
func NewUUID ¶
func NewUUID() UUID
NewUUID is used to generate a random UUID v4 using rand.Reader as the CSRNG.
func NewUUIDWith ¶
func (UUID) ExtractInto ¶
func (UUID) LeastSignificantBits ¶
func (UUID) MostSignificantBits ¶
type UniqueKeyTransformation ¶
type UniqueKeyTransformation int32
const ( UniqueKeyTransformationObject UniqueKeyTransformation = 0 UniqueKeyTransformationLong UniqueKeyTransformation = 1 UniqueKeyTransformationRaw UniqueKeyTransformation = 2 )