core

package
v0.0.0-...-2209333 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Code

type Code string

type Network

type Network interface {
	Init(eb bus.EventBus)
}

func NewNetwork

func NewNetwork(eb bus.EventBus) Network

type Node

type Node interface {
	AddOutputTo(peerId int, c chan any)
	DelOutputTo(peerId int)
	AddInputFrom(peerId int, c chan any)
	DelInputFrom(peerId int)
	GetOutConnections() bus.Connections
	SetData(json any)
	Run(eb bus.EventBus, signals <-chan Signal)
}

func NewNode

func NewNode(id int) Node

type Signal

type Signal int
const (
	START Signal = 1
	STOP  Signal = 2
	TERM  Signal = 3
	DEBUG Signal = 4
)

Jump to

Keyboard shortcuts

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