models

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenKeyInfo

func GenKeyInfo(keyType string) (string, error)

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"`
	AppName     string `form:"app_list"`
	CryptoType  string `form:"crypto_list"`
	PeerPrivkey string `form:"peer_privkey"`
	P2PPort     string `form:"p2p_port"`
	RpcPort     string `form:"rpc_port"`
	Peers       string `form:"peers"`
	AuthPrivkey string `form:"auth_privkey"`
	LogPath     string `form:"log_dir"`
	Env         string `form:"environment_list"`
	Genesisfile string `form:"genesisfile"`

	KeyInfo string `form:"keyinfo"`
}

func (*NodeInit) CheckData

func (n *NodeInit) CheckData() error

func (*NodeInit) DoInit

func (n *NodeInit) DoInit() error

Jump to

Keyboard shortcuts

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