nodes

package
v0.0.0-...-e35a73b Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Status_Online  = 1
	Status_Offline = 0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BeeNode

type BeeNode struct {
	ApiAddr      string
	P2PAddr      string
	DEBUGApiAddr string
	Pwd          string
	EndPoint     string
	Dir          string
	BeeCfgPath   string // 节点配置文件路径
	NodeName     string
	NodeIp       string
	NodeStatus   int
	NodeVersion  string
	DebugApiPort string
	// contains filtered or unexported fields
}

func NewNode

func NewNode(cfg config.Config) *BeeNode

func (*BeeNode) Cashout

func (this *BeeNode) Cashout() ([]string, error)

func (*BeeNode) GetBalance

func (this *BeeNode) GetBalance() (totalBalance, availableBalance string)

func (*BeeNode) GetIp

func (this *BeeNode) GetIp() string

func (*BeeNode) GetName

func (this *BeeNode) GetName() string

func (*BeeNode) GetPeers

func (this *BeeNode) GetPeers() int

func (*BeeNode) GetPort

func (this *BeeNode) GetPort() string

func (*BeeNode) GetSettlements

func (this *BeeNode) GetSettlements() string

func (*BeeNode) GetStatus

func (this *BeeNode) GetStatus() string

func (*BeeNode) GetTotalCheque

func (this *BeeNode) GetTotalCheque() int

func (*BeeNode) GetUncashedAmount

func (this *BeeNode) GetUncashedAmount() int

func (*BeeNode) GetVersion

func (this *BeeNode) GetVersion() string

Jump to

Keyboard shortcuts

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