core

package
v0.0.0-...-7bec513 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

Config - collects all configuration variables into unified struct

func New

func New(dg dgraph.Config, aws awsx.Config) Config

New - returns initializer containing unified config variables

func (*Config) BackupSequence

func (conf *Config) BackupSequence() error

BackupSequence - initiates backup sequence 1. Request Dgraph export 2. Compress export contents 3. Upload to S3 bucket 4. Clean export and archive files

func (*Config) RestoreSequence

func (conf *Config) RestoreSequence(filename string) error

RestoreSequence - initiates restore sequence 1. Download backup from S3 bucket 2. Unarchive to temporary folder 3. Obtain schema 4. Perform dgraph import using live loader 5. Cleans temporary folder

Jump to

Keyboard shortcuts

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