ds

package
v0.0.0-...-3a6b306 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2019 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 web.RequestInterface, key interface{}) error

func (*Client) DeleteMulti

func (client *Client) DeleteMulti(req web.RequestInterface, keys interface{}) error

func (*Client) DeleteStruct

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

func (*Client) GetIncomplete

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

func (*Client) GetKey

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

func (*Client) GetStruct

func (client *Client) GetStruct(req web.RequestInterface, 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 web.RequestInterface, entityType string, ancestor, src interface{}) error

func (*Client) PutKey

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

func (*Client) PutStruct

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

func (*Client) RunInTransaction

func (client *Client) RunInTransaction(req web.RequestInterface, f func(context.Context) error) error

func (*Client) RunKeysQuery

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

func (*Client) RunKeysQueryAE

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

func (*Client) RunQuery

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

Jump to

Keyboard shortcuts

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