Documentation ¶
Index ¶
- func ConnectRedis(ctx context.Context, redisIP string) (rc *redis.Client, close func(), err error)
- func DetectDatabase(ctx context.Context, datasetFile string, onCloud, useProdDB bool) (client *firestore.Client, shutdown func(), err error)
- func GetLocalDB(ctx context.Context, datasetFile string) (client *firestore.Client, shutdown func(), err error)
- func GetLogging(onCloud bool) (*zap.Logger, error)
- func GetProdDB(ctx context.Context, project string) (*firestore.Client, error)
- func GetTracer(component string, onCloud bool) (tracer oteltrace.Tracer, flush func(logger *zap.Logger))
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectRedis ¶
ConnectRedis establishes a connection to redis, or initializes an in-memory implementation if ip is empty.
func DetectDatabase ¶
func GetLocalDB ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.