Documentation ¶
Overview ¶
Package pageContext "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 ¶
- func GetCount(ctx context.Context, k *datastore.Key) (c int, err error)
- func GetKeys(ctx context.Context, k *datastore.Key) ([]*datastore.Key, error)
- func GetKeysByPageOrContextKey(ctx context.Context, key *datastore.Key) ([]*datastore.Key, []*datastore.Key, error)
- type PageContext
- type PageContexts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetKeys ¶
GetKeys returns corresponding pageContext keys by provided context or page key and also returns an error.
func GetKeysByPageOrContextKey ¶
func GetKeysByPageOrContextKey(ctx context.Context, key *datastore.Key) ( []*datastore.Key, []*datastore.Key, error)
GetKeysByPageOrContextKey returns the pageContext keys with context keys as a slice if the page key is provided or returns the page keys as a slice if context key is provided and also an error.
Types ¶
type PageContext ¶
PageContext datastore: ",noindex" causes json naming problems !!!!!!!!!!!!!!!!!!!!!!!!!! Page key is the parent key.