initializer

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: MIT Imports: 20 Imported by: 0

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 (*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

Jump to

Keyboard shortcuts

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