telemetry

package
v0.0.0-...-f5f0bdb Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2019 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultURL = "wss://telemetry.polkadot.io/submit/"

DefaultURL ...

Functions

This section is empty.

Types

type Config

type Config struct {
	Name string
	URL  string
}

Config ...

type InterfaceTelemetry

type InterfaceTelemetry interface {
	BlockImported()
	IntervalInfo(peers int, status synctypes.StatusEnum)
	Start()
}

InterfaceTelemetry ...

type Telemetry

type Telemetry struct {
	Blocks    *clientdb.BlockDB
	IsActive  bool
	Chain     string
	Name      string
	URL       string
	Websocket *ws.Conn
}

Telemetry ...

func NewTelemetry

func NewTelemetry(config *clienttypes.ConfigClient, chain chains.Chain) *Telemetry

NewTelemetry ...

func (*Telemetry) BlockImported

func (t *Telemetry) BlockImported()

BlockImported ...

func (*Telemetry) Connect

func (t *Telemetry) Connect()

Connect ...

func (*Telemetry) IntervalInfo

func (t *Telemetry) IntervalInfo(peers int, status synctypes.StatusEnum)

IntervalInfo ...

func (*Telemetry) Send

func (t *Telemetry) Send(message messages.Base)

Send ...

func (*Telemetry) SendInitial

func (t *Telemetry) SendInitial()

SendInitial ...

func (*Telemetry) Start

func (t *Telemetry) Start()

Start ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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