datastore

package
v0.1.0-beta-007 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entity

type Entity interface {
	Kind() string
	Name() string
}

Entity represents a single entity stored in Google Cloud's Datastore.

type Service

type Service interface {
	PutEntity(context.Context, Entity) error
	GetEntity(context.Context, Entity) error
	QueryEntities(context.Context, *datastore.Query, interface{}) error
}

Service exposes read and write operations to Google Cloud's Datastore.

func NewService

func NewService(projectID string, namespace string) Service

NewService creates a new instance of Service.

Jump to

Keyboard shortcuts

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