arango

package
v0.0.0-...-47c2dae Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(ctx context.Context, cfg ClientConfig) (arngin.Engine, error)

NewClient creates an instance of the arango Client which satisfies the arngin.Engine interface.

Types

type Client

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

Client implements the arngin.Engine interface using ArangoDB.

func (*Client) LoadRules

func (c *Client) LoadRules(ctx context.Context, rules []arngin.AddonRule) error

func (*Client) RunQuery

func (c *Client) RunQuery(ctx context.Context, q arngin.AddonsQ) ([]string, error)

type ClientConfig

type ClientConfig struct {
	Endpoint string
	DB       string
	Username string
	Password string
}

ClientConfig is the parameters required for connecting to an Arango database.

Jump to

Keyboard shortcuts

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