Documentation ¶
Index ¶
- type Entity
- type Service
- func (svc *Service) Count(ctx context.Context, query *datastore.Query) (int, error)
- func (svc *Service) Get(ctx context.Context, e Entity) error
- func (svc *Service) Insert(ctx context.Context, e Entity) (alreadyExists bool, err error)
- func (svc *Service) Query(ctx context.Context, query *datastore.Query, entities interface{}) error
- func (svc *Service) Upsert(ctx context.Context, e Entity) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service exposes read and write operations to Google Cloud Datastore.
func NewService ¶
NewService creates a new instance of Service.
func (*Service) Get ¶
Get loads the single entity which matches the kind and key of the given object.
Click to show internal directories.
Click to hide internal directories.