types

package
v1.0.0-preview.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2021 License: Apache-2.0 Imports: 4 Imported by: 7

Documentation

Overview

Package types contains various helper types.

Index

Constants

View Source
const (
	IndexTypeSorted = int32(0)
	IndexTypeHash   = int32(1)
	IndexTypeBitmap = int32(2)
)
View Source
const (
	UniqueKeyTransformationObject = int32(0)
	UniqueKeyTransformationLong   = int32(1)
	UniqueKeyTransformationRaw    = int32(2)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BitmapIndexOptions

type BitmapIndexOptions struct {
	UniqueKey               string
	UniqueKeyTransformation int32
}

type Entry

type Entry struct {
	Key   interface{}
	Value interface{}
}

func NewEntry

func NewEntry(key interface{}, value interface{}) Entry

type IndexConfig

type IndexConfig struct {
	Name               string
	Attributes         []string
	BitmapIndexOptions BitmapIndexOptions
	Type               int32
}

type IndexType

type IndexType int32

type SimpleEntryView

type SimpleEntryView struct {
	// contains filtered or unexported fields
}

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

func (SimpleEntryView) Cost

func (s SimpleEntryView) Cost() int64

func (SimpleEntryView) CreationTime

func (s SimpleEntryView) CreationTime() int64

func (SimpleEntryView) ExpirationTime

func (s SimpleEntryView) ExpirationTime() int64

func (SimpleEntryView) Hits

func (s SimpleEntryView) Hits() int64

func (SimpleEntryView) Key

func (s SimpleEntryView) Key() interface{}

func (SimpleEntryView) LastAccessTime

func (s SimpleEntryView) LastAccessTime() int64

func (SimpleEntryView) LastStoredTime

func (s SimpleEntryView) LastStoredTime() int64

func (SimpleEntryView) LastUpdateTime

func (s SimpleEntryView) LastUpdateTime() int64

func (SimpleEntryView) MaxIdle

func (s SimpleEntryView) MaxIdle() int64

func (SimpleEntryView) Ttl

func (s SimpleEntryView) Ttl() int64

func (SimpleEntryView) Value

func (s SimpleEntryView) Value() interface{}

func (SimpleEntryView) Version

func (s SimpleEntryView) Version() int64

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 NewUUIDWith(mostSigBits, leastSigBits uint64) UUID

func (UUID) Default

func (u UUID) Default() bool

func (UUID) LeastSignificantBits

func (u UUID) LeastSignificantBits() uint64

func (UUID) MostSignificantBits

func (u UUID) MostSignificantBits() uint64

func (UUID) String

func (u UUID) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL