pageContext

package
v0.0.0-...-0e3259e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2020 License: MIT Imports: 2 Imported by: 3

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCount

func GetCount(ctx context.Context, k *datastore.Key) (c int, err error)

GetCount returns the count of the entities that has provided key and an error.

func GetKeys

func GetKeys(ctx context.Context, k *datastore.Key) ([]*datastore.Key, error)

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

type PageContext struct {
	ContextKey *datastore.Key
}

PageContext datastore: ",noindex" causes json naming problems !!!!!!!!!!!!!!!!!!!!!!!!!! Page key is the parent key.

type PageContexts

type PageContexts []*PageContext

PageContexts is a []*PageContext

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL