dgraph

package module
v0.0.0-...-89bbdfb Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: Apache-2.0, BSD-3-Clause, MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReconstructGraph

func ReconstructGraph(graphData map[string]interface{}) model.Graph

Types

type DgraphFactory

type DgraphFactory struct {
}

DgraphFactory for postgres connection

func (*DgraphFactory) NewManager

func (this *DgraphFactory) NewManager(settings map[string]interface{}) (connection.Manager, error)

NewManager DgraphFactory

func (*DgraphFactory) Type

func (this *DgraphFactory) Type() string

Type DgraphFactory

type Settings

type Settings struct {
	Name        string `md:"name,required"`
	Description string `md:"description"`
	ApiVersion  string `md:"apiVersion,required"`
	URL         string `md:"url"`
	TLSEnabled  bool   `md:"tlsEnabled,required"`
	User        string `md:"user,required"`
	Password    string `md:"password,required"`
	TLS         string `md:"tls,required"`
	SchemaGen   string `md:"schemaGen,required"`
	Schema      string `md:"schema,required"`
}

Settings for dgraph

func NewSetting

func NewSetting(settings map[string]interface{}) (*Settings, error)

func (*Settings) ToMap

func (s *Settings) ToMap() map[string]interface{}

type SharedDgraphManager

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

SharedDgraphManager details

func (*SharedDgraphManager) GetConnection

func (this *SharedDgraphManager) GetConnection() interface{}

GetConnection SharedDgraphManager details

func (*SharedDgraphManager) Lookup

func (this *SharedDgraphManager) Lookup(clientID string, properties map[string]interface{}) (dbservice.UpsertService, error)

func (*SharedDgraphManager) ReleaseConnection

func (this *SharedDgraphManager) ReleaseConnection(connection interface{})

ReleaseConnection SharedDgraphManager details

func (*SharedDgraphManager) Start

func (this *SharedDgraphManager) Start() error

Start SharedDgraphManager details

func (*SharedDgraphManager) Stop

func (this *SharedDgraphManager) Stop() error

Stop SharedDgraphManager details

func (*SharedDgraphManager) Type

func (this *SharedDgraphManager) Type() string

Type SharedDgraphManager details

Jump to

Keyboard shortcuts

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