Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInitializerClient ¶ added in v0.6.0
func NewInitializerClient(ctx context.Context, rawurl string, log *zap.SugaredLogger) (v1.InitializerServiceClient, error)
NewInitializerClient returns a new initializer client.
Types ¶
type Initializer ¶
type Initializer struct {
// contains filtered or unexported fields
}
func New ¶
func New(log *zap.SugaredLogger, addr string, db database.Database, bp providers.BackupProvider, comp *compress.Compressor) *Initializer
func (*Initializer) Restore ¶
func (i *Initializer) Restore(version *providers.BackupVersion) error
Restore restores the database with the given backup version
func (*Initializer) Start ¶
func (i *Initializer) Start(stop <-chan struct{})
Start starts the initializer, which includes a server component and the initializer itself, which is potentially restoring a backup
Click to show internal directories.
Click to hide internal directories.