datastore: Index | Files

package splitop

import ""

Package splitop provides a avoid Datastore's limitation.


* split GetMulti operation to under 1000 entity per one action.

* > Maximum number of keys allowed for a Lookup operation in the Cloud Datastore API : 1,000


Package Files

doc.go option.go splitcall.go

func New Uses

func New(opts ...Option) datastore.Middleware

New split call middleware will be returns.

type Option Uses

type Option interface {

A Option is an option for splitop.

func WithGetSplitThreshold Uses

func WithGetSplitThreshold(threshold int) Option

WithGetSplitThreshold set get operation split threshold.

func WithLogger Uses

func WithLogger(logf func(ctx context.Context, format string, args ...interface{})) Option

WithLogger creates a Option that uses the specified logger.

func WithPutSplitThreshold Uses

func WithPutSplitThreshold(threshold int) Option

WithPutSplitThreshold set put operation split threshold.

func WithSplitThreshold Uses

func WithSplitThreshold(threshold int) Option

WithSplitThreshold set operation split threshold. Deprecated: use WithGetSplitThreshold instead.

Package splitop imports 2 packages (graph). Updated 2019-09-03. Refresh now. Tools for package owners.