mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-08 05:42:47 +02:00
17 lines
338 B
Go
17 lines
338 B
Go
// +build redis
|
|
|
|
package databroker
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/pomerium/pomerium/pkg/storage/redis"
|
|
)
|
|
|
|
func newTestServer() *Server {
|
|
address := "redis://localhost:6379/0"
|
|
if redisURL := os.Getenv("REDIS_URL"); redisURL != "" {
|
|
address = redisURL
|
|
}
|
|
return New(WithStorageType(redis.Name), WithStorageConnectionString(address))
|
|
}
|