cmdconfig

package
v0.0.0-...-ddbbf7b Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: BSD-3-Clause Imports: 20 Imported by: 0

Documentation

Overview

Package cmdconfig contains functions for configuring commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExperimentGetter

func ExperimentGetter(ctx context.Context, cfg *config.Config) middleware.ExperimentGetter

ExperimentGetter returns an ExperimentGetter using the config.

func Experimenter

Experimenter configures a middleware.Experimenter.

func Logger

func Logger(ctx context.Context, cfg *config.Config, logName string) middleware.Logger

Logger configures a middleware.Logger.

func OpenDB

func OpenDB(ctx context.Context, cfg *config.Config, bypassLicenseCheck bool) (_ *postgres.DB, err error)

OpenDB opens the postgres database specified by the config. It first tries the main connection info (DBConnInfo), and if that fails, it uses backup connection info it if exists (DBSecondaryConnInfo).

func Reporter

func Reporter(ctx context.Context, cfg *config.Config) derrors.Reporter

Reporter configures an Error Reporting client.

Types

This section is empty.

Jump to

Keyboard shortcuts

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