lib

package
v0.0.11-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IDENTITY, NODE_TYPE, STATIC, PERMISSIONED string
View Source
var PERMISSIONED_NODES = homeDir + beego.AppConfig.String("PermissionedNodesFileDir")
View Source
var STATIC_NODES = homeDir + beego.AppConfig.String("StaticNodesFileDir")

Functions

func CleanStart

func CleanStart() (ok bool)

Clean Start an Alastria node

func CleanTransactions

func CleanTransactions() (ok bool)

Clean transactions and restart nodes

func CurrentMonitorVersion

func CurrentMonitorVersion() (ok bool, version string)

Get current Version of the monitor

func GetCoinbase

func GetCoinbase() (ok bool, data string)

Gets coinbase from node

func GetFile

func GetFile(fichero string) (contenido string)

func GetGithub

func GetGithub(url string) (filename, contenido string, err error)

func GetLog

func GetLog() (ok bool, data string)

Log an Alastria node

func LastNodeRestart

func LastNodeRestart() (ok bool, salida string)

Last node/geth Restart

func LatestMonitorVersion

func LatestMonitorVersion() (ok bool, version string)

Get latest Version of the monitor

func NodeVersion

func NodeVersion() (ok bool, salida string)

Node/Geth/Quorum Version

func Propose

func Propose(candidate string, value string) (ok bool)

Propose new candidate

func Restart

func Restart() bool

Restart an Alastria node

func RestartNetwork

func RestartNetwork(nodeType string, nodeName string) (ok bool)

Restart the complete network

func RunCommand

func RunCommand(command string) (ok bool, salida string)

func RunCommandBackground

func RunCommandBackground(command string) (ok bool, salida string)

func Start

func Start() (ok bool)

Start an Alastria node

func StartMining

func StartMining() (ok bool)

If the node is not mining it starts mining

func Status

func Status() (salida string)

Compute Status for a node

func Stop

func Stop() (ok bool)

Stop an Alastria node

func StopScript

func StopScript() (ok bool)

Stop an Alastria node

func Update

func Update() bool

Update config files and restart an Alastria node

func UpdateCron

func UpdateCron()

Non-returning Update function for its use in CRON

func UpdateMonitor

func UpdateMonitor() (ok bool)

Get latest Version of the monitor

func UpdateScript

func UpdateScript() (ok bool)

Types

type QuorumServices

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

func NewQuorumServices

func NewQuorumServices(prefijo string) QuorumServices

Jump to

Keyboard shortcuts

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