rest

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2022 License: GPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func A

func A(url string, dataGen packet.MsgDataGen, tx *packet.TxParams, keyfile *utils.Keyfile) ([]interface{}, error)

func StartServer

func StartServer(endPoint string)

func UrlParamConvert

func UrlParamConvert(str string) string

UrlParamConvert convert e.g. chain-admin -> chainAdmin

func UrlParamConvertV2

func UrlParamConvertV2(str string) string

UrlParamConvertV2 convert e.g. chain-admin -> CHAIN_ADMIN

Types

type NodeInfo

type NodeInfo struct {
	// required
	Name      string `form:"name"`
	Status    uint32
	PublicKey string
	P2pPort   uint32

	// optional
	Owner      string
	Desc       string
	Type       uint32
	ExternalIP string
	InternalIP string
	RpcPort    uint32
	DelayNum   uint64
}

===================== Node ========================

Jump to

Keyboard shortcuts

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