Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GoogleCloudPlatform/golang-samples
/ functions
Functions
5,023 in github.com/GoogleCloudPlatform/golang-samples
⨍
Functions
5,023
◇
Types & classes
329
Function
HelloRemoteConfig
HelloRemoteConfig handles Firebase Remote Config events.
functions/console_snippets/firebase_remote_config/firebase_remote_config.go:37
Function
HelloWorld
HelloWorld prints "Hello, world."
functions/codelabs/gopher/hello.go:23
Function
IamGrantAccessWithRegionalSecret
iamGrantAccess grants the given member access to the secret.
secretmanager/regional_samples/iam_grant_access_with_regional_secret.go:28
Function
IamRevokeAccessWithRegionalSecret
iamRevokeAccess revokes the given member's access on the secret.
secretmanager/regional_samples/iam_revoke_access_with_regional_secret.go:28
Method
Insert
(context.Context, *computepb.InsertReservationRequest, ...gax.CallOption)
compute/reservations/mock_shared_project.go:39
Method
Insert
(context.Context, *computepb.InsertInstanceRequest, ...gax.CallOption)
compute/reservations/mock_shared_project.go:50
Method
Insert
(context.Context, *computepb.InsertInstanceRequest, ...gax.CallOption)
compute/reservations/mock_shared_project.go:59
Function
LazyGlobal
LazyGlobal is an example of lazily initializing a Google Cloud Storage client.
functions/tips/lazy.go:40
Method
ListBooks
ListBooks returns a list of books, ordered by title.
getting-started/bookshelf/db_firestore.go:102
Method
ListBooks
ListBooks returns a list of books, ordered by title.
getting-started/bookshelf/db_memory.go:107
Function
ListRegionalSecretVersions
listSecretVersions lists all secret versions in the given secret and their metadata.
secretmanager/regional_samples/list_regional_secret_versions.go:31
Function
ListRegionalSecretVersionsWithFilter
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
Function
ListRegionalSecrets
listSecrets lists all secrets in the given project.
secretmanager/regional_samples/list_regional_secrets.go:30
Function
ListRegionalSecretsWithFilter
listSecretsWithFilter lists all filter-matching secrets in the given project.
secretmanager/regional_samples/list_regional_secrets_with_filter.go:30
Method
LogEntries
(filter string, find string, maxAttempts int)
internal/cloudrunci/cloudrunci.go:537
Function
Logger
(w http.ResponseWriter, r *http.Request)
docs/appengine/requests/logging.go:30
Function
MakeGetRequestCloudFunction
MakeGetRequestCloudFunction wraps makeGetRequest in an HTTP Cloud Function for system test deployment.
functions/security/idtoken_cloudfunction.go:25
Function
MakeUpperCase
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
Function
MakeUpperCase
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
Method
MarshalJSON
()
monitoring/alert/alert.go:151
Method
Name
Name retrieves the ID for the full managed platform.
internal/cloudrunci/platform.go:44
Method
Name
Name retrieves the ID for the GKE platform.
internal/cloudrunci/platform.go:82
Method
Name
Name retrieves the ID for the Kubernetes platform.
internal/cloudrunci/platform.go:110
Function
NewGreeterClient
(cc *grpc.ClientConn)
endpoints/getting-started-grpc/helloworld/helloworld.pb.go:86
Function
NewJob
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
Function
NewPingServiceClient
(cc *grpc.ClientConn)
run/grpc-ping/pkg/api/v1/message.pb.go:210
Method
NewRequest
(method, url string)
internal/cloudrunci/platform.go:33
Method
NewRequest
NewRequest constructs a http.Request for the web tests's host.
getting-started/bookshelf/internal/webtest/webtest.go:94
Function
NewTimeServiceClient
(cc *grpc.ClientConn)
run/grpc-server-streaming/pkg/api/v1/timeservice.pb.go:150
Method
Number
()
spanner/spanner_snippets/spanner/testdata/protos/singer.pb.go:82
Method
Predict
(ctx context.Context, req *aiplatformpb.PredictRequest, opts ...gax.CallOption)
vertexai/gemma2/mock_client.go:40
Method
ProcessElement
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
Function
ProcessImage
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
Function
ProcessImage
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
Function
ProcessLogEntry
ProcessLogEntry processes a Pub/Sub message from Cloud Logging.
functions/log/process_log_entry.go:33
Function
ProcessLogEntry
ProcessLogEntry processes a Pub/Sub message from Cloud Logging.
functions/functionsv2/log/process_log_entry.go:48
Method
ProtoMessage
()
bigquery/snippets/managedwriter/exampleproto/sample_data.pb.go:66
Method
ProtoMessage
()
bigquery/snippets/managedwriter/exampleproto/sample_data.pb.go:137
Method
ProtoMessage
()
profiler/shakesapp/shakesapp/shakesapp.pb.go:38
Method
ProtoMessage
()
profiler/shakesapp/shakesapp/shakesapp.pb.go:78
Method
ProtoMessage
()
spanner/spanner_snippets/spanner/testdata/protos/singer.pb.go:115
Method
ProtoMessage
()
endpoints/getting-started-grpc/helloworld/helloworld.pb.go:49
Method
ProtoMessage
()
endpoints/getting-started-grpc/helloworld/helloworld.pb.go:59
Method
ProtoMessage
()
internal/pubsub/schemas/us-states.pb.go:65
Method
ProtoMessage
()
run/grpc-ping/pkg/api/v1/message.pb.go:38
Method
ProtoMessage
()
run/grpc-ping/pkg/api/v1/message.pb.go:79
Method
ProtoMessage
()
run/grpc-ping/pkg/api/v1/message.pb.go:132
Method
ProtoMessage
()
run/grpc-server-streaming/pkg/api/v1/timeservice.pb.go:38
Method
ProtoMessage
()
run/grpc-server-streaming/pkg/api/v1/timeservice.pb.go:77
Method
ProtoReflect
()
bigquery/snippets/managedwriter/exampleproto/sample_data.pb.go:68
Method
ProtoReflect
()
spanner/spanner_snippets/spanner/testdata/protos/singer.pb.go:117
Method
ProtoReflect
()
internal/pubsub/schemas/us-states.pb.go:67
Method
Recv
()
run/grpc-server-streaming/pkg/api/v1/timeservice.pb.go:178
Function
RegisterGreeterServer
(s *grpc.Server, srv GreeterServer)
endpoints/getting-started-grpc/helloworld/helloworld.pb.go:106
Function
RegisterPingServiceServer
(s *grpc.Server, srv PingServiceServer)
run/grpc-ping/pkg/api/v1/message.pb.go:249
Function
RegisterTimeServiceServer
(s *grpc.Server, srv TimeServiceServer)
run/grpc-server-streaming/pkg/api/v1/timeservice.pb.go:199
Method
Render
Render converts the Markdown plaintext to HTML.
run/markdown-preview/editor/render.go:74
Method
Reset
()
bigquery/snippets/managedwriter/exampleproto/sample_data.pb.go:53
Method
Reset
()
profiler/shakesapp/shakesapp/shakesapp.pb.go:36
Method
Reset
()
endpoints/getting-started-grpc/helloworld/helloworld.pb.go:47
Method
Reset
()
endpoints/getting-started-grpc/helloworld/helloworld.pb.go:57
Method
Reset
()
run/grpc-ping/pkg/api/v1/message.pb.go:36
Method
Reset
()
run/grpc-ping/pkg/api/v1/message.pb.go:130
Method
Reset
()
run/grpc-server-streaming/pkg/api/v1/timeservice.pb.go:36
Method
Reset
()
run/grpc-server-streaming/pkg/api/v1/timeservice.pb.go:75
Method
RoundTrip
(req *http.Request)
storage/service_account/client_endpoint/client_endpoint_test.go:32
Method
RoundTrip
(req *http.Request)
appengine/go11x/pubsub/authenicated_push/main_test.go:245
Method
Save
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
Method
Save
()
dlp/snippets/inspect/inspect_test.go:241
Method
Save
()
dlp/snippets/deid/deid_test.go:641
Method
Save
()
dlp/snippets/risk/risk_test.go:152
Method
SayHello
(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption)
endpoints/getting-started-grpc/helloworld/helloworld.pb.go:90
Method
SayHello
Sends a greeting
endpoints/getting-started-grpc/helloworld/helloworld.pb.go:103
Method
SayHello
SayHello implements helloworld.GreeterServer
endpoints/getting-started-grpc/server/main.go:56
Method
Send
(ctx context.Context, req *pb.Request)
run/grpc-ping/ping.go:33
Method
Send
(ctx context.Context, in *Request, opts ...grpc.CallOption)
run/grpc-ping/pkg/api/v1/message.pb.go:214
Method
Send
(context.Context, *Request)
run/grpc-ping/pkg/api/v1/message.pb.go:234
Method
Send
(ctx context.Context, req *Request)
run/grpc-ping/pkg/api/v1/message.pb.go:242
Method
Send
(m *TimeResponse)
run/grpc-server-streaming/pkg/api/v1/timeservice.pb.go:220
Function
SendComplexMessageHandler
(w http.ResponseWriter, r *http.Request)
docs/appengine/mail/mailgun/mailgun.go:50
Method
SendMessage
Saves messages to app memory
getting-started/devflowapp/services/services_mock.go:37
Method
SendMessage
Saves a message to the SQL database
getting-started/devflowapp/services/services.go:71
Function
SendSimpleMessageHandler
(w http.ResponseWriter, r *http.Request)
docs/appengine/mail/mailgun/mailgun.go:25
Method
SendUpstream
(ctx context.Context, req *pb.Request)
run/grpc-ping/ping.go:44
Method
SendUpstream
(ctx context.Context, in *Request, opts ...grpc.CallOption)
run/grpc-ping/pkg/api/v1/message.pb.go:223
Method
SendUpstream
(context.Context, *Request)
run/grpc-ping/pkg/api/v1/message.pb.go:235
Method
SendUpstream
(ctx context.Context, req *Request)
run/grpc-ping/pkg/api/v1/message.pb.go:245
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request)
endpoints/getting-started/app.go:81
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request)
getting-started/bookshelf/main.go:312
Function
SnippetClient_Delete
()
datastore/snippets/snippet_test.go:227
Function
SnippetClient_DeleteMulti
()
datastore/snippets/snippet_test.go:280
Function
SnippetClient_Get
()
datastore/snippets/snippet_test.go:191
Function
SnippetClient_GetMulti
()
datastore/snippets/snippet_test.go:268
Function
SnippetClient_Put
()
datastore/snippets/snippet_test.go:77
Function
SnippetClient_PutMulti
()
datastore/snippets/snippet_test.go:238
Function
SnippetClient_Put_upsert
()
datastore/snippets/snippet_test.go:157
Function
SnippetIterator_Cursor
()
datastore/snippets/snippet_test.go:508
Function
SnippetNewIncompleteKey
()
datastore/snippets/snippet_test.go:45
Function
SnippetNewKey
()
datastore/snippets/snippet_test.go:53
Function
SnippetNewKey_withMultipleParents
()
datastore/snippets/snippet_test.go:68
← previous
next →
2,901–3,000 of 5,023, ranked by callers