Versions in this module Expand all Collapse all v0 v0.0.14 Jun 23, 2023 v0.0.13 Jun 22, 2023 Changes in this version + const DOCKER_COMPOSE_DIR + const NODES_FILENAME + const SSH_PRIVATE_KEY_DIR + func CreateDirIfNotExists(dirname string) error + func GetDockerComposeDir() string + func GetNodesListFile() string + func GetSSHKeyPath(nodeId string) string + func GetSshKeysDir() string + func GetWorkDir() string + func Install(node Node, isDockerComposePresent bool) + func RemoveNode(nodeId string) error + func RemoveSshKeyIfExist(nodeId string) error + func UpdateSshKeyName(oldNodeId string, newNodeId string) error + func WriteNodeList(nodes []Node) error + type Config struct + BlockReward *string + DeltaF0 *uint + EndTimeStamp *uint + GenesisTimestamp *uint + OperationValidityParios *uint + PeriodsPerCycle *uint + PosLockCycles *uint + PosLookbackCycle *uint + RollPrice *string + T0 *uint + ThreadCount *uint + type ConsensusStats struct + CliqueCount *uint + EndTimespan *uint + FinalBlockCount *uint + FinalOperationCount *uint + StakerCount *uint + StaleBlockCount *uint + StartTimespan *uint + type ExecutionStats struct + ActiveCurser *node.Slot + FinalBlockCount *uint + FinalExecutedOperationsCount *uint + TimeWindowEnd *uint + TimeWindowStart *uint + type InstallNodeInput struct + DiscordId string + DockerComposeFile *multipart.FileHeader + Host string + Id string + SshKeyFile *multipart.FileHeader + SshPassword string + Username string + WalletPassword string + func (input *InstallNodeInput) CreateNode() Node + type ManageNodeInput struct + Id string + type NetworkStats struct + ActiveNodeCount *uint + BannedPeerCount *uint + InConnectionCount *uint + KnowPeerCount *uint + OutConnectionCount *uint + type Node struct + DiscordId string + Host string + Id string + SshPassword string + Status NodeStatus + Username string + WalletPassword string + func GetNodeById(id string) (*Node, error) + func GetNodes() ([]Node, error) + func (node *Node) BackupWallet() (string, error) + func (node *Node) DownloadFileSSH(remote string, local string) error + func (node *Node) FetchStatus() (NodeStatus, State) + func (node *Node) GetDockerComposePath() string + func (node *Node) GetLogs() (string, error) + func (node *Node) GetStatus() NodeStatus + func (node *Node) GetSystemMetrics() (*SystemMetrics, error) + func (node *Node) SetStatus(newState NodeStatus) + func (node *Node) StartNode() (string, error) + func (node *Node) StopNode() (string, error) + func (node *Node) WalletInfo() (*WalletInfo, error) + type NodeStatus int + const Bootstrapping + const Down + const Installing + const Unknown + const Up + func (i NodeStatus) String() string + type State struct + Config *Config + ConsensusStats *ConsensusStats + CurrentCycle *uint + CurrentTime *uint + ExecutionStats *ExecutionStats + LastSlot *node.Slot + NetworkStats *NetworkStats + NextSlot *node.Slot + NodeID *string + NodeIP *string + PoolStats *[]uint + Version *string + type SystemMetrics struct + CPU float64 + Disk int + RAM float64 + type WalletInfo struct + Active_rolls float64 + Address string + Candidate_balance string + Candidate_rolls float64 + Final_balance string + Final_rolls float64 + Thread float64