node

package
v0.0.0-...-3c79176 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2020 License: MIT Imports: 0 Imported by: 4

Documentation

Overview

Interfaces connected with node.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Capacity

type Capacity interface {
	Get() (float64, error)
}

Capacity is an interface describing how much data can the node hold.

type Node

type Node interface {
	ID() string //unique node ID
	Power() Power
	//Capacity() Capacity
	Hash() uint64 //unique node hash
}

Node is an interface describing storage/processing node in the cluster.

type Power

type Power interface {
	Get() float64
}

Power is an interface describing computational ability of the node.

Jump to

Keyboard shortcuts

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