core

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2020 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HeartbeatInterval = 12 * time.Second
)
View Source
const TokenFile = "token.dat"

Variables

This section is empty.

Functions

func IsURL added in v0.0.4

func IsURL(str string) bool

Types

type BeaconNodeConfig added in v0.0.3

type BeaconNodeConfig struct {
	Type        string
	Addr        string
	TLSCert     string
	MetricsAddr string
}

type Config

type Config struct {
	Eth2stats  Eth2statsConfig
	BeaconNode BeaconNodeConfig
	DataFolder string
}

type Core

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

func New

func New(config Config) *Core

func (*Core) Run

func (c *Core) Run(ctx context.Context) error

type Eth2statsConfig

type Eth2statsConfig struct {
	Version    string
	ServerAddr string
	TLS        bool
	NodeName   string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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