beater

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(b *beat.Beat, cfg *common.Config) (beat.Beater, error)

Creates beater

Types

type Eosbeat

type Eosbeat struct {
	// contains filtered or unexported fields
}

func (*Eosbeat) Run

func (bt *Eosbeat) Run(b *beat.Beat) error

func (*Eosbeat) Stop

func (bt *Eosbeat) Stop()

type GetInfoResponse

type GetInfoResponse struct {
	ServerVersion            string `json:"server_version"`
	HeadBlockNum             int    `json:"head_block_num"`
	HeadBlockProducer        string `json:"head_block_producer"`
	HeadBlockTime            string `json:"head_block_time"`
	HeadBlockID              string `json:"head_block_id"`
	LastIrreversibleBlockNum int    `json:"last_irreversible_block_num"`
}

type Node

type Node struct {
	Name         string `json:"bp_name"`
	Org          string `json:"organisation"`
	Location     string `json:"location"`
	NodeAddress  string `json:"node_addr"`
	PortHTTP     string `json:"port_http"`
	PortSSL      string `json:"port_ssl"`
	PortP2P      string `json:"port_p2p"`
	ProducerName string `json:"bp_name"`
	Coordinates  string
	NodeIP       string
	Responses    []float64
	AVR          float64
}

type NodeList

type NodeList struct {
	Nodes   []Node `json:"blockProducerList"`
	Network string `json:"network"`
}

Jump to

Keyboard shortcuts

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