node

package
v0.0.0-...-e2d08be Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

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

Node represents a node in the IBC network

func NewNode

func NewNode(id string, chainKey *ecdsa.PrivateKey, logger log.Logger) *Node

NewNode creates a new Node instance

func (*Node) GetPacketChan

func (n *Node) GetPacketChan() <-chan *Packet

GetPacketChan returns the packet channel

func (*Node) SendPacket

func (n *Node) SendPacket(packet *Packet, destNodeID string) error

SendPacket sends a packet to another node

func (*Node) Start

func (n *Node) Start() error

Start starts the node

Jump to

Keyboard shortcuts

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