MCPcopy
hub / github.com/grpc/grpc-go / getHostname

Function getHostname

interop/xds/server/server.go:79–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77)
78
79func getHostname() string {
80 if *hostNameOverride != "" {
81 return *hostNameOverride
82 }
83 hostname, err := os.Hostname()
84 if err != nil {
85 log.Fatalf("failed to get hostname: %v", err)
86 }
87 return hostname
88}
89
90// testServiceImpl provides an implementation of the TestService defined in
91// grpc.testing package.

Callers 1

mainFunction · 0.85

Calls 1

FatalfMethod · 0.65

Tested by

no test coverage detected