rpc

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenRpcServer

func ListenRpcServer(config *Config)

Types

type Config

type Config struct {
	Host string
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig(host string, ghClientUrl string, privKey crypto.PrivKey) (*Config, error)

type SetNebulaRq

type SetNebulaRq struct {
	NebulaId             string
	ChainType            string
	MaxPulseCountInBlock uint64
	MinScore             uint64
}

type VoteRq

type VoteRq struct {
	PubKey string
	Score  uint64
}

type VotesRq

type VotesRq struct {
	Votes []VoteRq
}

Jump to

Keyboard shortcuts

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