serverutil

package
v0.0.0-...-43b2f59 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectRedis

func ConnectRedis(ctx context.Context, redisIP string) (rc *redis.Client, close func(), err error)

ConnectRedis establishes a connection to redis, or initializes an in-memory implementation if ip is empty.

func DetectDatabase

func DetectDatabase(ctx context.Context, datasetFile string, onCloud, useProdDB bool) (client *firestore.Client, shutdown func(), err error)

func GetLocalDB

func GetLocalDB(ctx context.Context, datasetFile string) (client *firestore.Client, shutdown func(), err error)

func GetLogging

func GetLogging(onCloud bool) (*zap.Logger, error)

func GetProdDB

func GetProdDB(ctx context.Context, project string) (*firestore.Client, error)

func GetTracer

func GetTracer(component string, onCloud bool) (tracer oteltrace.Tracer, flush func(logger *zap.Logger))

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL