star

package
v3.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package star implements a new, experimental protocol called "STAR". This is like the BUS protocol, except that each member of the network automatically forwards any message it receives to any other peers. In a star network, this means that all members should receive all messages, assuming that there is a central server. Its important to ensure that the topology is free from cycles, as there is limited protection against that, and cycles can lead to significant message duplication.

Index

Constants

View Source
const (
	Self     = protocol.ProtoStar
	Peer     = protocol.ProtoStar
	SelfName = "star"
	PeerName = "star"
)

Protocol identity information.

Variables

This section is empty.

Functions

func NewProtocol

func NewProtocol() protocol.Protocol

NewProtocol returns a new protocol implementation.

func NewSocket

func NewSocket() (protocol.Socket, error)

NewSocket allocates a new Socket using the STAR protocol.

Types

This section is empty.

Jump to

Keyboard shortcuts

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