coordinator

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package coordinator implements a generic coordinator functionality for helium nodes. The coordinator orchestrates the execution of the MHE-based MPC protocol by executing its sub-protocols and routines.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel added in v0.2.0

type Channel[T EventType] struct {
	Incoming <-chan T
	Outgoing chan<- T
}

type Coordinator

type Coordinator[T EventType] interface {
	Register(ctx context.Context) (evChan *Channel[T], present int, err error)
}

type EventType added in v0.2.0

type EventType any

type Log

type Log[T EventType] []T

type TestCoordinator

type TestCoordinator[T EventType] struct {
	// contains filtered or unexported fields
}

func NewTestCoordinator

func NewTestCoordinator[T EventType](hid sessions.NodeID) *TestCoordinator[T]

func (*TestCoordinator[T]) Close

func (tc *TestCoordinator[T]) Close()

func (*TestCoordinator[T]) Register added in v0.2.0

func (tc *TestCoordinator[T]) Register(ctx context.Context) (evChan *Channel[T], present int, err error)

Jump to

Keyboard shortcuts

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