types

package
v1.0.0-preview.4 Latest Latest
Warning

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

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

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 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               IndexType
}

type IndexType

type IndexType int32
const (
	IndexTypeSorted IndexType = 0
	IndexTypeHash   IndexType = 1
	IndexTypeBitmap IndexType = 2
)

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 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

type UniqueKeyTransformation

type UniqueKeyTransformation int32
const (
	UniqueKeyTransformationObject UniqueKeyTransformation = 0
	UniqueKeyTransformationLong   UniqueKeyTransformation = 1
	UniqueKeyTransformationRaw    UniqueKeyTransformation = 2
)

Jump to

Keyboard shortcuts

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