export

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(endpoint, dest string, opts ...Option) (*Client, error)

func (*Client) Export

func (c *Client) Export(ctx context.Context) (*ExportOutput, error)

type ExportInput

type ExportInput struct {
	Format       graphql.String  `json:"format"`
	Destination  graphql.String  `json:"destination"`
	AccessKey    graphql.String  `json:"accessKey"`
	SecretKey    graphql.String  `json:"secretKey"`
	SessionToken graphql.String  `json:"sessionToken"`
	Anonymous    graphql.Boolean `json:"anonymous"`
	Namespace    graphql.Int     `json:"namespace"`
}

https://github.com/dgraph-io/dgraph/blob/v23.1.0/protos/pb/pb.pb.go#L4946

type ExportOutput

type ExportOutput struct {
	Response struct {
		Message graphql.String
		Code    graphql.String
	}

	ExportedFiles []graphql.String
}

https://github.com/dgraph-io/dgraph/blob/v23.1.0/protos/pb/pb.pb.go#L5063

func (*ExportOutput) GetFiles

func (resp *ExportOutput) GetFiles() []string

type Option

type Option func(*Client)

func WithAccessKey

func WithAccessKey(value string) Option

func WithAnonymous

func WithAnonymous(value bool) Option

func WithSecretKey

func WithSecretKey(value string) Option

Jump to

Keyboard shortcuts

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