Documentation ¶
Overview ¶
Package cmdconfig contains functions for configuring commands.
Index ¶
- func ExperimentGetter(ctx context.Context, cfg *config.Config) middleware.ExperimentGetter
- func Experimenter(ctx context.Context, cfg *config.Config, getter middleware.ExperimentGetter, ...) *middleware.Experimenter
- func Logger(ctx context.Context, cfg *config.Config, logName string) middleware.Logger
- func OpenDB(ctx context.Context, cfg *config.Config, bypassLicenseCheck bool) (_ *postgres.DB, err error)
- func Reporter(ctx context.Context, cfg *config.Config) derrors.Reporter
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 ¶
func Experimenter(ctx context.Context, cfg *config.Config, getter middleware.ExperimentGetter, reporter derrors.Reporter) *middleware.Experimenter
Experimenter configures a middleware.Experimenter.
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).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.