mdatastore

package
v0.0.0-...-c20f884 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package mdatastore implements connecting to Google's Datastore service and simplifying a number of interactions with it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Datastore

type Datastore struct {
	*datastore.Client
	// contains filtered or unexported fields
}

Datastore is a wrapper around a datastore client providing more functionality.

func WithDatastore

func WithDatastore(parent context.Context, gce *mdb.GCE) (context.Context, *Datastore)

WithDatastore returns a Datastore instance which will be initialized and configured when the start event is triggered on the returned Context (see mrun.Start). The Datastore instance will have Close called on it when the stop event is triggered on the returned Context (see mrun.Stop).

gce is optional and can be passed in if there's an existing gce object which should be used, otherwise a new one will be created with mdb.MGCE.

Jump to

Keyboard shortcuts

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