Documentation ¶
Overview ¶
appengine is App Engine 固有のmetadataを扱う https://cloud.google.com/appengine/docs/standard/go/runtime#environment_variables
Index ¶
Constants ¶
const DeploymentIDKey = "GAE_DEPLOYMENT_ID"
DeploymentIDKey is App Engine Deployment ID Key
const EnvKey = "GAE_ENV"
EnvKey is App Engine Env Env Key
const InstanceKey = "GAE_INSTANCE"
InstanceKey is App Engine Instance Env Key
const MemoryMBKey = "GAE_MEMORY_MB"
MemoryMBKey is App Engine Memory MB Env Key
const RuntimeKey = "GAE_RUNTIME"
RuntimeKey is App Engine Runtime Env Key
const ServiceKey = "GAE_SERVICE"
ServiceKey is App Engine Service Env Key
const VersionKey = "GAE_VERSION"
VersionKey is App Engine Version Env Key
Variables ¶
This section is empty.
Functions ¶
func DeploymentID ¶
DeploymentID is return deployment id The ID of the current deployment. https://cloud.google.com/appengine/docs/standard/go/runtime#environment_variables
func Env ¶
Env is return env The App Engine environment. Set to standard. https://cloud.google.com/appengine/docs/standard/go/runtime#environment_variables
func Instance ¶
Instance is return version id The ID of the instance on which your service is currently running. https://cloud.google.com/appengine/docs/standard/go/runtime#environment_variables
func MemoryMB ¶
MemoryMB is return MemoryMB The amount of memory available to the application process, in MB. https://cloud.google.com/appengine/docs/standard/go/runtime#environment_variables
func OnGAEReal ¶
func OnGAEReal() bool
OnGAEReal is AppがGAEで動いてるかどうか 環境変数およびOnGCP()も見てるので、本当にGAEで動いてるか
func Runtime ¶
Runtime is return runtime The runtime specified in your app.yaml file. https://cloud.google.com/appengine/docs/standard/go/runtime#environment_variables
func Service ¶
Service is return service id The service name specified in your app.yaml file. If no service name is specified, it is set to default. https://cloud.google.com/appengine/docs/standard/go/runtime#environment_variables
func Version ¶
Version is return version id The current version label of your service. https://cloud.google.com/appengine/docs/standard/go/runtime#environment_variables
Types ¶
This section is empty.