memory

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2017 License: Apache-2.0 Imports: 9 Imported by: 4

Documentation

Overview

Package memory provides a volatile memory-based implementation of the storage.Store and storage.Graph interfaces.

Index

Constants

This section is empty.

Variables

View Source
var DefaultStore storage.Store

DefaultStore provides a volatile in memory store.

Functions

func Base64ToUUID added in v0.7.0

func Base64ToUUID(b64 string) (uuid.UUID, error)

Base64ToUUID attempts to decode a base 64 encoded UUID.

func NewStore

func NewStore() storage.Store

NewStore creates a new memory store.

func UUIDToBase64 added in v0.7.0

func UUIDToBase64(uuid uuid.UUID) string

UUIDToBase64 recodes it into a compact string.

func UUIDToByteString added in v0.7.0

func UUIDToByteString(uuid uuid.UUID) string

UUIDToByteString converts the bytes of the UUID into a, likely, unreadable string. This is useful to minimized the key size used for the inmemory indices.

Types

This section is empty.

Jump to

Keyboard shortcuts

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