pomerium/internal/databroker/helper_redis.go
2020-07-29 23:08:38 +07:00

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))
}