Documentation ¶
Overview ¶
Package demand "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 ¶
Types ¶
type Demand ¶
type Demand struct { ID string `datastore:"-"` UserID string `datastore:"-" json:"userID"` AccountID string `datastore:"-" json:"accountID"` Description string `datastore:",noindex" json:"description"` Created time.Time `json:"created"` LastModified time.Time `json:"lastModified"` Status string `json:"status"` }
Demand attributes are; Type is remote or inPlace IF THERE IS AT LEAST ONE OFFER DO NOT LET USER TO CHANGE DEMAND !!!!!!!!!!!!!!!! Status is underConsideration, active, rejected, changed, removed, finished, disaproved. PIC is Person In Charge whom aprove this. User key is the ancestor. UserID and AccountID are used to if controles at frontend to be able to modify a demand and create an offer.
func GetLatestLimited ¶
GetLatestLimited returns limited entities from the begining of the kind with given limit and an error.
type Demands ¶
Demands is a *Demand map.
func GetMulti ¶
GetMulti returns the corresponding entities as a map with their "ID"s assigned by their keys and an error.
func GetNextByParentLimited ¶
func GetNextByParentLimited(ctx context.Context, crsrAsString string, pk *datastore.Key, lim int) (Demands, string, error)
GetNextByParentLimited returns limited entities filtered by user key as parent from the previous cursor in an order. Also, returns the next cursor as string and an error.