rpc

package
v0.0.0-...-3b51f2e Latest Latest
Warning

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

Go to latest
Published: May 20, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Broadcast

func Broadcast(message BroadcastMessage) error

Broadcast used for single shot broadcast

func SyncNodesAndLinkStates

func SyncNodesAndLinkStates(targets []Target) ([]router.Node, router.LinkStates, error)

SyncNodesAndLinkStates A node that is not starting the first time tries to load the current cluster information from one of its neighbors Called before the node connected to the cluster, thus should not use dqlite repo

Types

type BroadcastMessage

type BroadcastMessage = struct {
	Type    pb.BroadcastType
	Payload []byte
}

type Target

type Target struct {
	ServerId string
	AddrPort netip.AddrPort
}

Jump to

Keyboard shortcuts

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