Help us shape the future of Go! Take the 2026 Go Developer Survey

server

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: MIT Imports: 15 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 NewTestBaseServer added in v1.0.0

func NewTestBaseServer(
	t *testing.T,
	cfg TestServerCfg,
) *s.BaseServer

Types

type EnabledServices

type EnabledServices struct {
	API     bool
	Indexer bool
	Reports bool
	Sync    bool
}

type TestServerCfg

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

Jump to

Keyboard shortcuts

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