remotegraph

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: MIT Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package remotegraph provides an authenticated HTTP peer backed by real Cypher and native graph storage for coordinator protocol regression tests.

Index

Constants

View Source
const (
	CatalogName = "protocol_descriptor"
	Query       = "USE protocol_descriptor.r MATCH (n:DescriptorPeer) RETURN n.marker AS marker"
	Show        = "SHOW CONSTITUENTS FOR COMPOSITE DATABASE protocol_descriptor"
	Password    = " synthetic-adapter-password "
)

Variables

This section is empty.

Functions

func CheckPublicRead

func CheckPublicRead(t *testing.T, peer *Peer, run func(string) [][]interface{})

CheckPublicRead verifies display redaction and two authenticated Fabric reads through a caller's actual protocol. The second read observes changed storage.

Types

type Peer

type Peer struct {
	URL string
	// contains filtered or unexported fields
}

Peer executes received statements against native stored data. Its handler checks exact Basic credentials before dispatch; it never echoes a fixture row.

func New

func New(t *testing.T) (*multidb.DatabaseManager, *Peer)

New constructs a keyed coordinator catalog and an authenticated remote graph. Both lifetimes belong to t; callers select their actual coordinator protocol.

manager, peer := remotegraph.New(t)
peer.SetMarker(t, "updated")

func (*Peer) Calls

func (p *Peer) Calls() int64

Calls counts authenticated statement executions against the remote graph.

func (*Peer) SetMarker

func (p *Peer) SetMarker(t *testing.T, marker string)

SetMarker changes the real remote body, so repeated coordinator reads prove the peer's execution and storage path rather than a cached constant response.

Jump to

Keyboard shortcuts

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