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.