local

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Messages []chan []byte

Messages is the global message buffer

Functions

func InitMessages

func InitMessages(n uint32)

InitMessages initializes the global message buffer

Types

type Local

type Local struct {
	ID peer.ID
}

Local simulates distributed key generation with a global buffer

func (*Local) Recv

func (l *Local) Recv(id peer.ID) ([]byte, error)

Recv reads from the global message buffer

func (*Local) Send

func (l *Local) Send(id peer.ID, msg []byte) error

Send adds a message to the global buffer

Jump to

Keyboard shortcuts

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