datastore

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Overview

Package datastore is a service that stores data in a key-value store.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindServer

func BindServer(p *apiserver.ServerParams, svc *appmain.Services)

BindServer registers the datastore service.

Types

type BboltValue

type BboltValue struct {
	// ID is the primary key of the data object.
	ID string `storm:"id"`
	// Data is the byte string that stored. It's a serialized version of proto Any.
	Data []byte
	// Location is the physical location of where the data is stored.
	Location string `storm:"index"`
	// User is the owner of the data.
	User string `storm:"index"`
	// Type is the type of resource that the data contains.
	CollectionType string `storm:"index"`
	// Name is the unique name that is given to the resource.
	Name string `storm:"index"`
	// Parent path is <location>/<user>/<type>.
	ParentPath string `storm:"index"`
}

BboltValue ok.

type FirestoreValue

type FirestoreValue struct {
	// ID is the primary key of the data object.
	ID string `firestore:"id"`
	// Data is the byte string that stored. It's a serialized version of proto Any.
	Data []byte `firestore:"data"`
}

FirestoreValue is the internally stored Firestore document.

Directories

Path Synopsis
Package testing provides testing functionality for datastore.
Package testing provides testing functionality for datastore.

Jump to

Keyboard shortcuts

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