Documentation
¶
Overview ¶
Command datastoredemo exercises nosql/datastore against the Datastore emulator, or against a real project when credentials are present.
gcloud beta emulators datastore start --host-port=127.0.0.1:8081
DATASTORE_EMULATOR_HOST=127.0.0.1:8081 DATASTORE_PROJECT_ID=demo \
tinygo run ./examples/datastoredemo
Against a real project the emulator variable is unset and GOOGLE_APPLICATION_CREDENTIALS names a service account key file. That path signs a self-signed JWT; the emulator ignores Authorization entirely, so a green run here does not exercise the token.
Click to show internal directories.
Click to hide internal directories.