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
// DefaultDomain is the name of a domain that should be created automatically if it doesn't exist. This is intended
// only to be used as part of auto-setup.
// Defaults to "", meaning no domain will be created.
DefaultDomain string
// Resume allows the first schema update applied to each DB to skip DDL statements whose schema element already
// exists. This supports resuming a schema update that was interrupted after applying some, but not all, of its
// statements. Defaults to false.
Resume bool
}
func OptionsFromConfig ¶
Click to show internal directories.
Click to hide internal directories.