tools

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

* Tools package. It's contain some useful tools, just like vote and so on. This file is created by magic at 2018-9-3 *

Index

Constants

This section is empty.

Variables

View Source
var NodeVote = cli.Command{
	Name:  "vote",
	Usage: "vote for node",
	Flags: []cli.Flag{
		cli.StringFlag{
			Name:  "name",
			Value: "",
			Usage: "节点名称",
		},
		cli.IntFlag{
			Name:  "v",
			Value: 0,
			Usage: "投票数量",
		},
	},
	Action: func(context *cli.Context) error {
		if err := Vote(context); err != nil {
			return err
		}
		return nil
	},
}

NodeVote 节点投票命令

Functions

func Vote

func Vote(context *cli.Context) error

Vote for node. The votes of node is origin vote plus new vote. votes = originVote + vote

Types

This section is empty.

Jump to

Keyboard shortcuts

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