node

package
v0.0.0-...-bab900e Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrHostNotFound error

Functions

func GenerateKey

func GenerateKey()

Types

type Account

type Account struct {
}

func NewAccount

func NewAccount() *Account

type Db

type Db struct {
}

func NewDB

func NewDB() *Db

type Frame

type Frame struct {
	SrcAddress  string
	DestAddress string
	Type        string
	Content     string
	Content1    string
	Content2    string
	Content3    string
}

func NewFrame

func NewFrame(src string, dest string, tp string, context string) Frame

type Intercom

type Intercom struct {
	// contains filtered or unexported fields
}

func (*Intercom) RegisterReceiver

func (c *Intercom) RegisterReceiver(address string, node *Node)

func (*Intercom) Send

func (c *Intercom) Send(router string, frame Frame) (err error)

type Node

type Node struct {
	// contains filtered or unexported fields
}

func NewNode

func NewNode() *Node

func (*Node) Receive

func (c *Node) Receive(frame Frame)

func (*Node) Start

func (c *Node) Start(path string) error

func (*Node) Stop

func (c *Node) Stop()

func (*Node) ThAction

func (c *Node) ThAction()

Jump to

Keyboard shortcuts

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