Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
// Required
// ClusterName is the name of the current cluster
ClusterName string
// Config is the persistence config to use for connecting to the DBs. It must be non-nil.
Config *config.Persistence
// Optional
// SetupOptions are parameters passed to SetupDB.Setup. Defaults to empty
SetupOptions map[string]string
// Logger is the logger. Defaults to zap production defaults
Logger log.Logger
// ConnectTimeout is the amount of time allowed to spend connecting to all DB instances. Defaults to 10s.
// During this time period, any errors are retried with a short backoff. This is to tolerate the DBs not yet
// being available.
ConnectTimeout time.Duration
// Time is the time source. Defaults to real time.
Time clock.TimeSource
}
func OptionsFromConfig ¶
Click to show internal directories.
Click to hide internal directories.