backend

package
v0.0.0-...-64150a4 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AADTokenAuth

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

func (*AADTokenAuth) Authenticate

func (auth *AADTokenAuth) Authenticate(authData map[string]interface{}) error

type Authenticator

type Authenticator interface {
	Authenticate(authData map[string]interface{}) error
}

func NewAuth

func NewAuth() (Authenticator, error)

type Backend

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

func NewBackend

func NewBackend(username, password, uri string, auth Authenticator, hosts ...string) (*Backend, error)

func (*Backend) Authenticate

func (b *Backend) Authenticate(hello *bolt.Message) error

This part can be extended with third party auth service, so that Memgraph does not perform auth

func (*Backend) InitBoltConnection

func (b *Backend) InitBoltConnection(hello []byte, network string) (bolt.BoltConn, error)

func (*Backend) IsAuthEnabled

func (b *Backend) IsAuthEnabled() bool

func (*Backend) MainInstance

func (b *Backend) MainInstance() *url.URL

func (*Backend) Version

func (b *Backend) Version() bolt.Version

type BasicAuth

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

func (*BasicAuth) Authenticate

func (auth *BasicAuth) Authenticate(authData map[string]interface{}) error

type Monitor

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

func NewMonitor

func NewMonitor(user, password, uri string, hosts ...string) (*Monitor, error)

The Monitor server to provide the data about the used backend service (Memgraph or Neo4j)

type Parameters

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

Jump to

Keyboard shortcuts

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