models

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2018 License: LGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseServer

func CloseServer(c *beego.Controller)

func DoInitNode

func DoInitNode(c *beego.Controller, runtime string)

func GenKeyInfo

func GenKeyInfo() string

func RunNode

func RunNode(c *beego.Controller)

Types

type KeyInfo

type KeyInfo struct {
	Privkey string
	Pubkey  string
	Address string
}

type NodeInit

type NodeInit struct {
	ConfigPath  string `form:"config_path"`
	Chainid     string `form:"chainid"`
	PeerPrivkey string `form:"peer_privkey"`
	P2PPort     string `form:"p2p_port"`
	RpcPort     string `form:"rpc_port"`
	EventPort   string `form:"event_port"`
	Peers       string `form:"peers"`
	AuthPrivkey string `form:"auth_privkey"`
	LogPath     string `form:"log_path"`
	Genesisfile string `form:"genesisfile"`

	KeyInfo string `form:"keyinfo"`
}

func (*NodeInit) CheckData

func (n *NodeInit) CheckData() error

func (*NodeInit) DoInit

func (n *NodeInit) DoInit(runtime string) error

Jump to

Keyboard shortcuts

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