github.com/aarzilli/tools@v0.0.0-20151123112009-0d27094f75e0/appengine/namespaced_taskqueued_cntr/doc.go (about)

     1  /*	Package namespaced_taskqueued_cntr is a datastore counter,
     2  	that can be stored under nscStringKey.
     3  
     4  	Upon changing the namespace to altNamespace,
     5  	we have a different value for the same key.
     6  
     7  	The blobstore is not differentiated by namespaces.
     8  	But the taskqueue is.
     9  
    10  	We push a message onto the task queue,
    11  	twice - under different namespaces.
    12  
    13  	The task-queue pop handler automatically increments
    14  	*that* namespace.counter, under which namespace it was pushed/enqueued
    15  
    16  */
    17  package namespaced_taskqueued_cntr