dist

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2025 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package dist currently holds configuration primitives. Transport was moved to pkg/backend.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	NodeID           string
	BindAddr         string // address the node listens on for RPC
	AdvertiseAddr    string // address shared with peers (may differ from BindAddr)
	Seeds            []string
	Replication      int
	VirtualNodes     int
	ReadConsistency  int // maps to backend.ConsistencyLevel
	WriteConsistency int
	HintTTL          time.Duration
	HintReplay       time.Duration
	HintMaxPerNode   int
}

Config holds cluster node + distributed settings for DistMemory (and future networked backends).

func Defaults

func Defaults() Config

Defaults returns a Config with safe initial values.

Jump to

Keyboard shortcuts

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