MCPcopy Create free account

hub / github.com/GoogleCloudPlatform/golang-samples / functions

Functions5,023 in github.com/GoogleCloudPlatform/golang-samples

FunctionHelloRemoteConfig
HelloRemoteConfig handles Firebase Remote Config events.
functions/console_snippets/firebase_remote_config/firebase_remote_config.go:37
FunctionHelloWorld
HelloWorld prints "Hello, world."
functions/codelabs/gopher/hello.go:23
FunctionIamGrantAccessWithRegionalSecret
iamGrantAccess grants the given member access to the secret.
secretmanager/regional_samples/iam_grant_access_with_regional_secret.go:28
FunctionIamRevokeAccessWithRegionalSecret
iamRevokeAccess revokes the given member's access on the secret.
secretmanager/regional_samples/iam_revoke_access_with_regional_secret.go:28
MethodInsert
(context.Context, *computepb.InsertReservationRequest, ...gax.CallOption)
compute/reservations/mock_shared_project.go:39
MethodInsert
(context.Context, *computepb.InsertInstanceRequest, ...gax.CallOption)
compute/reservations/mock_shared_project.go:50
MethodInsert
(context.Context, *computepb.InsertInstanceRequest, ...gax.CallOption)
compute/reservations/mock_shared_project.go:59
FunctionLazyGlobal
LazyGlobal is an example of lazily initializing a Google Cloud Storage client.
functions/tips/lazy.go:40
MethodListBooks
ListBooks returns a list of books, ordered by title.
getting-started/bookshelf/db_firestore.go:102
MethodListBooks
ListBooks returns a list of books, ordered by title.
getting-started/bookshelf/db_memory.go:107
FunctionListRegionalSecretVersions
listSecretVersions lists all secret versions in the given secret and their metadata.
secretmanager/regional_samples/list_regional_secret_versions.go:31
FunctionListRegionalSecretVersionsWithFilter
listSecretVersionsWithFilter lists all filter-matching secret versions in the given secret and their metadata.
secretmanager/regional_samples/list_regional_secret_versions_with_filter.go:31
FunctionListRegionalSecrets
listSecrets lists all secrets in the given project.
secretmanager/regional_samples/list_regional_secrets.go:30
FunctionListRegionalSecretsWithFilter
listSecretsWithFilter lists all filter-matching secrets in the given project.
secretmanager/regional_samples/list_regional_secrets_with_filter.go:30
MethodLogEntries
(filter string, find string, maxAttempts int)
internal/cloudrunci/cloudrunci.go:537
FunctionLogger
(w http.ResponseWriter, r *http.Request)
docs/appengine/requests/logging.go:30
FunctionMakeGetRequestCloudFunction
MakeGetRequestCloudFunction wraps makeGetRequest in an HTTP Cloud Function for system test deployment.
functions/security/idtoken_cloudfunction.go:25
FunctionMakeUpperCase
MakeUpperCase is triggered by a change to a Firestore document. It updates the `original` value of the document to upper case.
functions/firebase/upper/upper.go:87
FunctionMakeUpperCase
MakeUpperCase is triggered by a change to a Firestore document. It updates the `original` value of the document to upper case.
functions/functionsv2/firebase/upper/upper.go:66
MethodMarshalJSON
()
monitoring/alert/alert.go:151
MethodName
Name retrieves the ID for the full managed platform.
internal/cloudrunci/platform.go:44
MethodName
Name retrieves the ID for the GKE platform.
internal/cloudrunci/platform.go:82
MethodName
Name retrieves the ID for the Kubernetes platform.
internal/cloudrunci/platform.go:110
FunctionNewGreeterClient
(cc *grpc.ClientConn)
endpoints/getting-started-grpc/helloworld/helloworld.pb.go:86
FunctionNewJob
NewJob creates a new Job to be run with Cloud Run Jobs. It will default to the ManagedPlatform in region us-central1, and build a container image as n
internal/cloudrunci/cloudrunjobs.go:81
FunctionNewPingServiceClient
(cc *grpc.ClientConn)
run/grpc-ping/pkg/api/v1/message.pb.go:210
MethodNewRequest
(method, url string)
internal/cloudrunci/platform.go:33
MethodNewRequest
NewRequest constructs a http.Request for the web tests's host.
getting-started/bookshelf/internal/webtest/webtest.go:94
FunctionNewTimeServiceClient
(cc *grpc.ClientConn)
run/grpc-server-streaming/pkg/api/v1/timeservice.pb.go:150
MethodNumber
()
spanner/spanner_snippets/spanner/testdata/protos/singer.pb.go:82
MethodPredict
(ctx context.Context, req *aiplatformpb.PredictRequest, opts ...gax.CallOption)
vertexai/gemma2/mock_client.go:40
MethodProcessElement
ProcessElement for extractFn processes a line at a time, emitting each word in that line while keeping count of how many words are below the SmallWord
dataflow/flex-templates/wordcount/wordcount.go:69
FunctionProcessImage
ProcessImage is executed when a file is uploaded to the Cloud Storage bucket you created for uploading images. It runs detectText, which processes the
functions/ocr/app/process.go:27
FunctionProcessImage
ProcessImage is executed when a file is uploaded to the Cloud Storage bucket you created for uploading images. It runs detectText, which processes the
functions/functionsv2/ocr/app/process.go:36
FunctionProcessLogEntry
ProcessLogEntry processes a Pub/Sub message from Cloud Logging.
functions/log/process_log_entry.go:33
FunctionProcessLogEntry
ProcessLogEntry processes a Pub/Sub message from Cloud Logging.
functions/functionsv2/log/process_log_entry.go:48
MethodProtoMessage
()
bigquery/snippets/managedwriter/exampleproto/sample_data.pb.go:66
MethodProtoMessage
()
bigquery/snippets/managedwriter/exampleproto/sample_data.pb.go:137
MethodProtoMessage
()
profiler/shakesapp/shakesapp/shakesapp.pb.go:38
MethodProtoMessage
()
profiler/shakesapp/shakesapp/shakesapp.pb.go:78
MethodProtoMessage
()
spanner/spanner_snippets/spanner/testdata/protos/singer.pb.go:115
MethodProtoMessage
()
endpoints/getting-started-grpc/helloworld/helloworld.pb.go:49
MethodProtoMessage
()
endpoints/getting-started-grpc/helloworld/helloworld.pb.go:59
MethodProtoMessage
()
internal/pubsub/schemas/us-states.pb.go:65
MethodProtoMessage
()
run/grpc-ping/pkg/api/v1/message.pb.go:38
MethodProtoMessage
()
run/grpc-ping/pkg/api/v1/message.pb.go:79
MethodProtoMessage
()
run/grpc-ping/pkg/api/v1/message.pb.go:132
MethodProtoMessage
()
run/grpc-server-streaming/pkg/api/v1/timeservice.pb.go:38
MethodProtoMessage
()
run/grpc-server-streaming/pkg/api/v1/timeservice.pb.go:77
MethodProtoReflect
()
bigquery/snippets/managedwriter/exampleproto/sample_data.pb.go:68
MethodProtoReflect
()
spanner/spanner_snippets/spanner/testdata/protos/singer.pb.go:117
MethodProtoReflect
()
internal/pubsub/schemas/us-states.pb.go:67
MethodRecv
()
run/grpc-server-streaming/pkg/api/v1/timeservice.pb.go:178
FunctionRegisterGreeterServer
(s *grpc.Server, srv GreeterServer)
endpoints/getting-started-grpc/helloworld/helloworld.pb.go:106
FunctionRegisterPingServiceServer
(s *grpc.Server, srv PingServiceServer)
run/grpc-ping/pkg/api/v1/message.pb.go:249
FunctionRegisterTimeServiceServer
(s *grpc.Server, srv TimeServiceServer)
run/grpc-server-streaming/pkg/api/v1/timeservice.pb.go:199
MethodRender
Render converts the Markdown plaintext to HTML.
run/markdown-preview/editor/render.go:74
MethodReset
()
bigquery/snippets/managedwriter/exampleproto/sample_data.pb.go:53
MethodReset
()
profiler/shakesapp/shakesapp/shakesapp.pb.go:36
MethodReset
()
endpoints/getting-started-grpc/helloworld/helloworld.pb.go:47
MethodReset
()
endpoints/getting-started-grpc/helloworld/helloworld.pb.go:57
MethodReset
()
run/grpc-ping/pkg/api/v1/message.pb.go:36
MethodReset
()
run/grpc-ping/pkg/api/v1/message.pb.go:130
MethodReset
()
run/grpc-server-streaming/pkg/api/v1/timeservice.pb.go:36
MethodReset
()
run/grpc-server-streaming/pkg/api/v1/timeservice.pb.go:75
MethodRoundTrip
(req *http.Request)
storage/service_account/client_endpoint/client_endpoint_test.go:32
MethodRoundTrip
(req *http.Request)
appengine/go11x/pubsub/authenicated_push/main_test.go:245
MethodSave
Save implements the ValueSaver interface. This example disables best-effort de-duplication, which allows for higher throughput.
bigquery/snippets/table/bigquery_table_insert_rows.go:33
MethodSave
()
dlp/snippets/inspect/inspect_test.go:241
MethodSave
()
dlp/snippets/deid/deid_test.go:641
MethodSave
()
dlp/snippets/risk/risk_test.go:152
MethodSayHello
(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption)
endpoints/getting-started-grpc/helloworld/helloworld.pb.go:90
MethodSayHello
Sends a greeting
endpoints/getting-started-grpc/helloworld/helloworld.pb.go:103
MethodSayHello
SayHello implements helloworld.GreeterServer
endpoints/getting-started-grpc/server/main.go:56
MethodSend
(ctx context.Context, req *pb.Request)
run/grpc-ping/ping.go:33
MethodSend
(ctx context.Context, in *Request, opts ...grpc.CallOption)
run/grpc-ping/pkg/api/v1/message.pb.go:214
MethodSend
(context.Context, *Request)
run/grpc-ping/pkg/api/v1/message.pb.go:234
MethodSend
(ctx context.Context, req *Request)
run/grpc-ping/pkg/api/v1/message.pb.go:242
MethodSend
(m *TimeResponse)
run/grpc-server-streaming/pkg/api/v1/timeservice.pb.go:220
FunctionSendComplexMessageHandler
(w http.ResponseWriter, r *http.Request)
docs/appengine/mail/mailgun/mailgun.go:50
MethodSendMessage
Saves messages to app memory
getting-started/devflowapp/services/services_mock.go:37
MethodSendMessage
Saves a message to the SQL database
getting-started/devflowapp/services/services.go:71
FunctionSendSimpleMessageHandler
(w http.ResponseWriter, r *http.Request)
docs/appengine/mail/mailgun/mailgun.go:25
MethodSendUpstream
(ctx context.Context, req *pb.Request)
run/grpc-ping/ping.go:44
MethodSendUpstream
(ctx context.Context, in *Request, opts ...grpc.CallOption)
run/grpc-ping/pkg/api/v1/message.pb.go:223
MethodSendUpstream
(context.Context, *Request)
run/grpc-ping/pkg/api/v1/message.pb.go:235
MethodSendUpstream
(ctx context.Context, req *Request)
run/grpc-ping/pkg/api/v1/message.pb.go:245
MethodServeHTTP
(w http.ResponseWriter, r *http.Request)
endpoints/getting-started/app.go:81
MethodServeHTTP
(w http.ResponseWriter, r *http.Request)
getting-started/bookshelf/main.go:312
FunctionSnippetClient_Delete
()
datastore/snippets/snippet_test.go:227
FunctionSnippetClient_DeleteMulti
()
datastore/snippets/snippet_test.go:280
FunctionSnippetClient_Get
()
datastore/snippets/snippet_test.go:191
FunctionSnippetClient_GetMulti
()
datastore/snippets/snippet_test.go:268
FunctionSnippetClient_Put
()
datastore/snippets/snippet_test.go:77
FunctionSnippetClient_PutMulti
()
datastore/snippets/snippet_test.go:238
FunctionSnippetClient_Put_upsert
()
datastore/snippets/snippet_test.go:157
FunctionSnippetIterator_Cursor
()
datastore/snippets/snippet_test.go:508
FunctionSnippetNewIncompleteKey
()
datastore/snippets/snippet_test.go:45
FunctionSnippetNewKey
()
datastore/snippets/snippet_test.go:53
FunctionSnippetNewKey_withMultipleParents
()
datastore/snippets/snippet_test.go:68
← previousnext →2,901–3,000 of 5,023, ranked by callers