node

package
v1.13.14 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

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 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