MCPcopy Create free account

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

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

FunctionTestWithContext
(t *testing.T)
docs/appengine/tools/unittest/aetest.go:24
FunctionTestWithdrawLowBal
[END gae_unittest_utility_example_2] [START datastore_example_1]
docs/appengine/tools/unittest/aetest2.go:58
FunctionTestWordCount
(t *testing.T)
dataflow/flex-templates/wordcount/wordcount_test.go:27
FunctionTestWriteTelemetry
(t *testing.T)
opentelemetry/instrumentation/app/main_test.go:40
FunctionTestWriteTraces
(t *testing.T)
opentelemetry/trace/main_test.go:29
FunctionTestWrites
(t *testing.T)
bigtable/writes/writes_test.go:31
FunctionTest_controlledGenerationResponseSchema6
(t *testing.T)
vertexai/controlled-generation/controlledgen_schema_test.go:26
FunctionTest_controlledGenerationResponseSchemaEnum
(t *testing.T)
vertexai/controlled-generation/controlledgen_schema_test.go:56
FunctionTest_countTokens
(t *testing.T)
vertexai/token-count/tokencount_test.go:26
FunctionTest_countTokensMultimodal
(t *testing.T)
vertexai/token-count/tokencount_test.go:78
FunctionTest_functionCalling
(t *testing.T)
vertexai/function-calling/functioncalling_test.go:25
FunctionTest_functionCallsChat
(t *testing.T)
vertexai/function-calling/functioncalling_test.go:50
FunctionTest_generateContent
(t *testing.T)
vertexai/stream-multimodality-basic/streammultimodalitybasic_test.go:24
FunctionTest_generateContent
(t *testing.T)
vertexai/stream-text-basic/streamtextbasic_test.go:24
FunctionTest_generateMultimodalContent
(t *testing.T)
vertexai/multimodal-video-with-audio/multimodalvideoaudio_test.go:25
FunctionTest_parallelFunctionCalling
(t *testing.T)
vertexai/function-calling/functioncalling_test.go:63
FunctionTest_tryGemini
(t *testing.T)
vertexai/snippets/try_gemini_test.go:24
FunctionTimeout
Timeout sleeps for 2 minutes and may time out before finishing.
functions/tips/timeout.go:34
MethodUnmarshalJSON
(b []byte)
monitoring/alert/alert.go:158
MethodUnmarshalJSON
(b []byte)
monitoring/alert/alert.go:171
MethodUpdateBook
UpdateBook updates the entry for a given book.
getting-started/bookshelf/db_firestore.go:94
MethodUpdateBook
UpdateBook updates the entry for a given book.
getting-started/bookshelf/db_memory.go:94
FunctionUpdateRegionalSecret
updateSecret updates the metadata about an existing secret.
secretmanager/regional_samples/update_regional_secret.go:30
FunctionUpdateRegionalSecretWithAlias
updateSecret updates the alias map on an existing secret.
secretmanager/regional_samples/update_regional_secret_with_alias.go:30
FunctionUpdateRegionalSecretWithEtag
updateSecretWithEtag updates the metadata about an existing secret.
secretmanager/regional_samples/update_regional_secret_with_etag.go:30
MethodValidate
Validate confirms required properties are set.
internal/cloudrunci/platform.go:49
MethodValidate
Validate confirms required properties are set.
internal/cloudrunci/platform.go:87
MethodValidate
Validate confirms required properties are set.
internal/cloudrunci/platform.go:115
MethodWaitForKeyVersionReady
WaitForKeyVersionReady waits for the given key version to no longer be in the pending_generation state.
kms/kms_helpers_test.go:335
MethodWaitForNet
WaitForNet waits for the host to come live. After a 30s timeout, it will call t.Fatal
getting-started/bookshelf/internal/webtest/webtest.go:47
MethodXXX_DiscardUnknown
()
profiler/shakesapp/shakesapp/shakesapp.pb.go:55
MethodXXX_DiscardUnknown
()
profiler/shakesapp/shakesapp/shakesapp.pb.go:95
MethodXXX_DiscardUnknown
()
run/grpc-ping/pkg/api/v1/message.pb.go:55
MethodXXX_DiscardUnknown
()
run/grpc-ping/pkg/api/v1/message.pb.go:96
MethodXXX_DiscardUnknown
()
run/grpc-ping/pkg/api/v1/message.pb.go:149
MethodXXX_DiscardUnknown
()
run/grpc-server-streaming/pkg/api/v1/timeservice.pb.go:55
MethodXXX_DiscardUnknown
()
run/grpc-server-streaming/pkg/api/v1/timeservice.pb.go:94
MethodXXX_Marshal
(b []byte, deterministic bool)
profiler/shakesapp/shakesapp/shakesapp.pb.go:46
MethodXXX_Marshal
(b []byte, deterministic bool)
profiler/shakesapp/shakesapp/shakesapp.pb.go:86
MethodXXX_Marshal
(b []byte, deterministic bool)
run/grpc-ping/pkg/api/v1/message.pb.go:46
MethodXXX_Marshal
(b []byte, deterministic bool)
run/grpc-ping/pkg/api/v1/message.pb.go:87
MethodXXX_Marshal
(b []byte, deterministic bool)
run/grpc-ping/pkg/api/v1/message.pb.go:140
MethodXXX_Marshal
(b []byte, deterministic bool)
run/grpc-server-streaming/pkg/api/v1/timeservice.pb.go:46
MethodXXX_Marshal
(b []byte, deterministic bool)
run/grpc-server-streaming/pkg/api/v1/timeservice.pb.go:85
MethodXXX_Merge
(src proto.Message)
profiler/shakesapp/shakesapp/shakesapp.pb.go:49
MethodXXX_Merge
(src proto.Message)
profiler/shakesapp/shakesapp/shakesapp.pb.go:89
MethodXXX_Merge
(src proto.Message)
run/grpc-ping/pkg/api/v1/message.pb.go:49
MethodXXX_Merge
(src proto.Message)
run/grpc-ping/pkg/api/v1/message.pb.go:90
MethodXXX_Merge
(src proto.Message)
run/grpc-ping/pkg/api/v1/message.pb.go:143
MethodXXX_Merge
(src proto.Message)
run/grpc-server-streaming/pkg/api/v1/timeservice.pb.go:49
MethodXXX_Merge
(src proto.Message)
run/grpc-server-streaming/pkg/api/v1/timeservice.pb.go:88
MethodXXX_Size
()
profiler/shakesapp/shakesapp/shakesapp.pb.go:52
MethodXXX_Size
()
profiler/shakesapp/shakesapp/shakesapp.pb.go:92
MethodXXX_Size
()
run/grpc-ping/pkg/api/v1/message.pb.go:52
MethodXXX_Size
()
run/grpc-ping/pkg/api/v1/message.pb.go:93
MethodXXX_Size
()
run/grpc-ping/pkg/api/v1/message.pb.go:146
MethodXXX_Size
()
run/grpc-server-streaming/pkg/api/v1/timeservice.pb.go:52
MethodXXX_Size
()
run/grpc-server-streaming/pkg/api/v1/timeservice.pb.go:91
MethodXXX_Unmarshal
(b []byte)
profiler/shakesapp/shakesapp/shakesapp.pb.go:43
MethodXXX_Unmarshal
(b []byte)
profiler/shakesapp/shakesapp/shakesapp.pb.go:83
MethodXXX_Unmarshal
(b []byte)
run/grpc-ping/pkg/api/v1/message.pb.go:43
MethodXXX_Unmarshal
(b []byte)
run/grpc-ping/pkg/api/v1/message.pb.go:84
MethodXXX_Unmarshal
(b []byte)
run/grpc-ping/pkg/api/v1/message.pb.go:137
MethodXXX_Unmarshal
(b []byte)
run/grpc-server-streaming/pkg/api/v1/timeservice.pb.go:43
MethodXXX_Unmarshal
(b []byte)
run/grpc-server-streaming/pkg/api/v1/timeservice.pb.go:82
Function_Greeter_SayHello_Handler
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)
endpoints/getting-started-grpc/helloworld/helloworld.pb.go:110
Function_PingService_SendUpstream_Handler
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)
run/grpc-ping/pkg/api/v1/message.pb.go:271
Function_PingService_Send_Handler
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)
run/grpc-ping/pkg/api/v1/message.pb.go:253
Function_ShakespeareService_GetMatchCount_Handler
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)
profiler/shakesapp/shakesapp/shakesapp.pb.go:181
Function_TimeService_StreamTime_Handler
(srv interface{}, stream grpc.ServerStream)
run/grpc-server-streaming/pkg/api/v1/timeservice.pb.go:203
FunctionaddAndDropDatabaseRole
(ctx context.Context, w io.Writer, adminClient *database.DatabaseAdminClient, db string)
spanner/spanner_snippets/snippet.go:716
FunctionaddAndDropDatabaseRole
(w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_add_and_drop_database_role.go:27
FunctionaddCommitTimestamp
(ctx context.Context, w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_add_timestamp_column.go:28
MethodaddFormHandler
addFormHandler displays a form that captures details of a new book to add to the database.
getting-started/bookshelf/main.go:149
FunctionaddIndex
(ctx context.Context, w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_create_index.go:28
FunctionaddJsonBColumn
addJsonBColumn creates a column in the database of type JSONB
spanner/spanner_snippets/spanner/pg_spanner_add_jsonb_column.go:30
FunctionaddJsonColumn
addJsonColumn creates a column in the database of type JSON
spanner/spanner_snippets/spanner/spanner_add_json_column.go:30
FunctionaddNewColumn
[END spanner_read_data] [START spanner_add_column]
spanner/spanner_snippets/snippet.go:187
FunctionaddNewColumn
(ctx context.Context, w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_add_column.go:28
FunctionaddNumericColumn
(ctx context.Context, w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_add_numeric_column.go:28
FunctionaddProtoColumn
(ctx context.Context, w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_add_proto_column.go:30
FunctionaddSplitpoints
Adds split points to table and index AddSplitPoins API - https://pkg.go.dev/cloud.google.com/go/spanner/admin/database/apiv1#DatabaseAdminClient.AddSp
spanner/spanner_snippets/spanner/spanner_database_add_split_points.go:34
FunctionaddStoringIndex
[END spanner_read_data_with_index] [START spanner_create_storing_index]
spanner/spanner_snippets/snippet.go:281
FunctionaddStoringIndex
(ctx context.Context, w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_create_storing_index.go:28
FunctionaddTaskHandler
(_ http.ResponseWriter, r *http.Request)
docs/appengine/taskqueue/pull/taskqueue_pull.go:24
FunctionalterSequence
(w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_alter_sequence.go:30
FunctionalterTableWithForeignKeyDeleteCascade
(w io.Writer, db string)
spanner/spanner_snippets/spanner/spanner_alter_table_with_foreign_key_delete_cascade.go:28
FunctionanalyzeEntitiesFromGCS
[START language_entities_gcs]
language/snippets/snippet.go:30
FunctionanalyzeSentimentFromGCS
[END language_entities_gcs] [START language_sentiment_gcs]
language/snippets/snippet.go:46
FunctionanalyzeSyntaxFromGCS
[END language_sentiment_gcs] [START language_syntax_gcs]
language/snippets/snippet.go:61
FunctionapiKey
apiKey shows how to use an API key to authenticate.
auth/overview/api_key.go:29
FunctionareYouReadyHandler
(w http.ResponseWriter, r *http.Request)
run/service-health/main.go:311
FunctionauthInfoHandler
[START endpoints_auth_info_backend] authInfoHandler reads authentication info provided by the Endpoints proxy.
endpoints/getting-started/app.go:93
FunctionbatchTranslateTextWithGlossaryAndModel
batchTranslateTextWithGlossaryAndModel translates a large volume of text in asynchronous batch mode.
translate/v3/batch_translate_text_with_glossary_and_model.go:29
FunctionbatchTranslateTextWithModel
batchTranslateTextWithModel translates a large volume of text in asynchronous batch mode.
translate/v3/batch_translate_text_with_model.go:29
FunctionbatchWrite
batchWrite demonstrates writing mutations to a Spanner database through BatchWrite API - https://pkg.go.dev/cloud.google.com/go/spanner#Client.BatchWr
spanner/spanner_snippets/spanner/spanner_batch_write.go:31
FunctioncancelBackup
(ctx context.Context, w io.Writer, db, backupID string)
spanner/spanner_snippets/spanner/spanner_cancel_backup_create.go:34
FunctioncaptureGFELatencyMetric
[END spanner_opentelemetry_usage] [START spanner_opentelemetry_gfe_metric] GFE_Latency and other Spanner metrics are automatically collected when Open
spanner/opentelemetry/spanner_opentelemetry_usage.go:117
FunctioncaptureQueryStatsMetric
[END spanner_opentelemetry_gfe_metric] [START spanner_opentelemetry_capture_query_stats_metric]
spanner/opentelemetry/spanner_opentelemetry_usage.go:140
FunctioncaseEditorServiceRender
(t *testing.T)
run/testing/markdown_preview_editor.e2e_test.go:83
← previousnext →4,201–4,300 of 5,023, ranked by callers