MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / GetHostname

Function GetHostname

IceFireDB-Redis-Proxy/utils/func.go:73–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71var _hostname string
72
73func GetHostname() string {
74 if _hostname != "" {
75 return _hostname
76 }
77
78 hostname, err := os.Hostname()
79 if err != nil {
80 return ""
81 }
82 _hostname = hostname
83 return _hostname
84}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected