node

package
v1.17.0-RC3 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

DEPRECATED: This package is deprecated and will be removed in a future release.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtID

func ExtID() string

func GetWalletString

func GetWalletString() (string, error)

GetWalletString returns marshaled to JSON string nodes wallet.

func ID

func ID() string

ID returns id of Node.

func PrivateKey added in v1.14.0

func PrivateKey() string

PrivateKey returns id of Node.

func PublicKey

func PublicKey() string

PublicKey returns id of Node.

func SetWallet

func SetWallet(wall *wallet.Wallet)

func Start

func Start(host string, port int, extID string, wallet *wallet.Wallet)

Start writes to self node current time, sets wallet, external id and url

Start should be used only once while application is starting.

func StartTime

func StartTime() time.Time

StartTime returns time when Node is started.

Types

type Node

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

Node represent self node type.

Jump to

Keyboard shortcuts

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