srvcfg

package
v0.0.0-...-51f9457 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package srvcfg provides service-wide configs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMigrationConfig

func GetMigrationConfig(ctx context.Context) (*migrationpb.Settings, error)

GetMigrationConfig loads typically cached migration config.

func ImportConfig

func ImportConfig(ctx context.Context) error

ImportConfig is called from a cron to import and cache all the configs.

func SetTestMigrationConfig

func SetTestMigrationConfig(ctx context.Context, m *migrationpb.Settings) error

SetTestMigrationConfig is used in tests only.

Types

This section is empty.

Jump to

Keyboard shortcuts

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