nebulagraph

package module
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

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

Cluster represents a running NebulaGraph cluster for testing

func RunCluster

func RunCluster(ctx context.Context,
	graphdImg string, graphdCustomizers []testcontainers.ContainerCustomizer,
	storagedImg string, storagedCustomizers []testcontainers.ContainerCustomizer,
	metadImg string, metadCustomizers []testcontainers.ContainerCustomizer,
) (*Cluster, error)

RunCluster starts a NebulaGraph cluster (metad, storaged, graphd and activator) containers within a Docker network

func (*Cluster) ConnectionString

func (c *Cluster) ConnectionString(ctx context.Context) (string, error)

ConnectionString returns the host:port for connecting to NebulaGraph graphd

func (*Cluster) Terminate

func (c *Cluster) Terminate(ctx context.Context) error

Terminate stops all NebulaGraph containers

Jump to

Keyboard shortcuts

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