Documentation ¶
Index ¶
- type GoonQueryHelper
- func (g *GoonQueryHelper) Count() (int, error)
- func (g *GoonQueryHelper) Filter(field string, value interface{}) *GoonQueryHelper
- func (g *GoonQueryHelper) GetResult(dst interface{}) (*datastore.Key, error)
- func (g *GoonQueryHelper) HasNext() (bool, string, error)
- func (g *GoonQueryHelper) Limit(limit int) *GoonQueryHelper
- func (g *GoonQueryHelper) OrderAsc(field string) *GoonQueryHelper
- func (g *GoonQueryHelper) OrderDesc(field string) *GoonQueryHelper
- func (g *GoonQueryHelper) RunQuery() *GoonQueryHelper
- func (g *GoonQueryHelper) Start(c datastore.Cursor) *GoonQueryHelper
- type Path
- type Queue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoonQueryHelper ¶
GoonQueryHelper is goon query helper.
func NewGoonQueryHelper ¶
func NewGoonQueryHelper(g *goon.Goon, kind string) *GoonQueryHelper
NewGoonQueryHelper return new goon helper.
func (*GoonQueryHelper) Count ¶
func (g *GoonQueryHelper) Count() (int, error)
Count return total entity count corresponded to query.
func (*GoonQueryHelper) Filter ¶
func (g *GoonQueryHelper) Filter(field string, value interface{}) *GoonQueryHelper
Filter set filter to datastore query.
func (*GoonQueryHelper) GetResult ¶
func (g *GoonQueryHelper) GetResult(dst interface{}) (*datastore.Key, error)
GetResult return iterated result.
if key is non-nil, add one to ret.
func (*GoonQueryHelper) HasNext ¶
func (g *GoonQueryHelper) HasNext() (bool, string, error)
HasNext return true if there is more entity in datastore than limit.
func (*GoonQueryHelper) Limit ¶
func (g *GoonQueryHelper) Limit(limit int) *GoonQueryHelper
Limit set limit to datastore query.
func (*GoonQueryHelper) OrderAsc ¶
func (g *GoonQueryHelper) OrderAsc(field string) *GoonQueryHelper
OrderAsc set ascending order to datastore query.
func (*GoonQueryHelper) OrderDesc ¶
func (g *GoonQueryHelper) OrderDesc(field string) *GoonQueryHelper
OrderDesc set descending order to datastore query.
func (*GoonQueryHelper) RunQuery ¶
func (g *GoonQueryHelper) RunQuery() *GoonQueryHelper
RunQuery run datastore query.
func (*GoonQueryHelper) Start ¶
func (g *GoonQueryHelper) Start(c datastore.Cursor) *GoonQueryHelper
Start set cursor to datastore query.
Click to show internal directories.
Click to hide internal directories.