node

package
v0.0.0-...-4b4fa20 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create()

Types

type Config

type Config struct {
	NodeID             string
	Port               string
	DBPath             string
	RedisAddr          string
	PeerAddresses      map[string]string
	UseTLS             bool
	ElectionTimeoutMin int
	ElectionTimeoutMax int
	HeartbeatInterval  int
}

type Node

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

type NodeInterface

type NodeInterface interface {
	Start()
	Stop()
}

type NodeType

type NodeType string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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