dgraph

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TempDataFolder = "data/"

TempDataFolder - holds directory to extract backups before importing

Functions

This section is empty.

Types

type Config

type Config struct {
	Host             string
	HostPort         string
	ExportPath       string
	ExportFormat     string
	ExportFilePrefix string
	AlphaHost        string
	AlphaPort        string
	ZeroHost         string
	ZeroPort         string
}

Config - collects all parameters related to interacting with Dgraph

func (*Config) Export

func (dg *Config) Export() error

Export - initiates exporting Dgraph

func (*Config) Restore

func (dg *Config) Restore(restorePath string, schemaPath string) error

Restore - initiates importing backup to Dgraph

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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