Documentation ¶
Overview ¶
Package offer "Every package should have a package comment, a block comment preceding the package clause. For multi-file packages, the package comment only needs to be present in one file, and any one will do. The package comment should introduce the package and provide information relevant to the package as a whole. It will appear first on the godoc page and should set up the detailed documentation that follows."
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Offer ¶
type Offer struct { ID string `datastore:"-"` UserID string `json:"userID"` AccountID string `datastore:"-" json:"accountID"` Description string `datastore:",noindex" json:"description"` Amount float64 `datastore:",noindex" json:"amount"` Created time.Time `json:"created"` Status string `json:"status"` }
Offer is the struct for user offers. INFORM DEMAND OWNER WHEN AN OFFER MODIFIED !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Status is available, accepted, notAccepted, changed, removed, successful, unsuccessful. backup (ONLY AUTHORIZED ACCOUNTS WHO ACCEPTED TO BE BACKUP) !!!!!!!!!!!!!!!!!!!! Demand key is the ancestor key. AccountID is used to link the account.
type Offers ¶
Offers is map[string]*Offer.
func GetNextByParentLimited ¶
func GetNextByParentLimited(ctx context.Context, crsrAsString string, pk *datastore.Key, lim int) ( Offers, string, error)
GetNextByParentLimited returns limited and filtered entities within an order after the given cursor. If limit is 0 or greater than 40, default limit will be used.