MCPcopy Create free account
hub / github.com/RedisGraph/redisgraph-go / getConnectionDetails

Function getConnectionDetails

example_graph_test.go:109–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

107}
108
109func getConnectionDetails() (host string, password string) {
110 value, exists := os.LookupEnv("REDISGRAPH_TEST_HOST")
111 host = "localhost:6379"
112 if exists && value != "" {
113 host = value
114 }
115 password = ""
116 valuePassword, existsPassword := os.LookupEnv("REDISGRAPH_TEST_PASSWORD")
117 if existsPassword && valuePassword != "" {
118 password = valuePassword
119 }
120 return
121}
122
123func getTLSdetails() (tlsready bool, tls_cert string, tls_key string, tls_cacert string) {
124 tlsready = false

Callers 1

ExampleGraphNew_tlsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected