server

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package server implements the replication server test utils.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTestReplicationServer added in v0.5.1

func NewTestReplicationServer(
	t *testing.T,
	cfg TestServerCfg,
) *s.ReplicationServer

Types

type EnabledServices

type EnabledServices struct {
	Indexer     bool
	Sync        bool
	Replication bool
}

type TestServerCfg

type TestServerCfg struct {
	GRPCListener     net.Listener
	HTTPListener     net.Listener
	DB               *sql.DB
	Registry         r.NodeRegistry
	PrivateKey       *ecdsa.PrivateKey
	ContractsOptions config.ContractsOptions
	Services         EnabledServices
}

Jump to

Keyboard shortcuts

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