MCPcopy Index your code
hub / github.com/google/go-cloud / Shutdown

Method Shutdown

server/driver/driver.go:41–41  ·  view source on GitHub ↗

Shutdown gracefully shuts down the server without interrupting any active connections. If the provided context expires before the shutdown is complete, Shutdown returns the context's error, otherwise it returns any error returned from closing the Server's underlying Listener(s).

(ctx context.Context)

Source from the content-addressed store, hash-verified

39 // otherwise it returns any error returned from closing the Server's
40 // underlying Listener(s).
41 Shutdown(ctx context.Context) error
42}
43
44// TLSServer is an optional interface for Server drivers, that adds support

Callers 15

NewTraceProviderFunction · 0.65
NewMeterProviderFunction · 0.65
NewLoggerProviderFunction · 0.65
setupFunction · 0.65
ExecuteMethod · 0.65
ExecuteMethod · 0.65
configureMeterProviderFunction · 0.65
ShutdownMethod · 0.65
ShutdownMethod · 0.65
ExampleServer_ShutdownFunction · 0.65
NewTraceProviderFunction · 0.65
NewMeterProviderFunction · 0.65

Implementers 3

Serverserver/server.go
DefaultDriverserver/server.go
testDriverserver/server_test.go

Calls

no outgoing calls

Tested by 15

ExampleServer_ShutdownFunction · 0.52
ExampleMessage_AsFunction · 0.52
ExampleSubscription_AsFunction · 0.52
ExampleTopic_AsFunction · 0.52
ExampleTopic_ErrorAsFunction · 0.52
runBenchmarkFunction · 0.52
TestKafkaKeyFunction · 0.52
BenchmarkKafkaFunction · 0.52
TestOpenTopicFromURLFunction · 0.52