ds

package
v0.0.0-...-1676a5e Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(ctx *context.Context, projectId string) Client

func (*Client) DeleteKey

func (client *Client) DeleteKey(req http.Request, key interface{}) error

func (*Client) DeleteMulti

func (client *Client) DeleteMulti(req http.Request, keys interface{}) error

func (*Client) DeleteStruct

func (client *Client) DeleteStruct(req http.Request, entityType, keyName string, intId int64, ancestor interface{}) error

func (*Client) GetIncomplete

func (client *Client) GetIncomplete(req http.Request, entityType string, intId int64, dst interface{}) (bool, error)

func (*Client) GetKey

func (client *Client) GetKey(req http.Request, key interface{}, dst interface{}) (bool, error)

func (*Client) GetStruct

func (client *Client) GetStruct(req http.Request, entityType, keyName string, intId int64, ancestor, dst interface{}) (bool, error)

func (*Client) IsAppEngine

func (client *Client) IsAppEngine() bool

func (*Client) PutIncomplete

func (client *Client) PutIncomplete(req http.Request, entityType string, ancestor, src interface{}) error

func (*Client) PutKey

func (client *Client) PutKey(req http.Request, key interface{}, src interface{}) error

func (*Client) PutStruct

func (client *Client) PutStruct(req http.Request, entityType, keyName string, intId int64, ancestor, src interface{}) error

func (*Client) RunInTransaction

func (client *Client) RunInTransaction(req http.Request, f func(context.Context) error) error

func (*Client) RunKeysQuery

func (client *Client) RunKeysQuery(req http.Request, query *datastore.Query) ([]*datastore.Key, error)

func (*Client) RunKeysQueryAE

func (client *Client) RunKeysQueryAE(req http.Request, query *datastoreAE.Query) ([]*datastoreAE.Key, error)

func (*Client) RunQuery

func (client *Client) RunQuery(req http.Request, q, dst interface{}) error

Jump to

Keyboard shortcuts

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