website

package
v0.29.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: AGPL-3.0 Imports: 26 Imported by: 0

Documentation

Overview

Package website contains the service delivering the website

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrServerAlreadyStarted = errors.New("server was already started")
	EnablePprof             = os.Getenv("PPROF") == "1"
)

Functions

func ParseIndexTemplate added in v0.8.2

func ParseIndexTemplate() (*template.Template, error)

Types

type StatusHTMLData

type StatusHTMLData struct {
	Network                     string
	RelayPubkey                 string
	ValidatorsTotal             uint64
	ValidatorsRegistered        uint64
	BellatrixForkVersion        string
	CapellaForkVersion          string
	GenesisForkVersion          string
	GenesisValidatorsRoot       string
	BuilderSigningDomain        string
	BeaconProposerSigningDomain string
	HeadSlot                    uint64
	NumPayloadsDelivered        uint64
	Payloads                    []*database.DeliveredPayloadEntry

	ValueLink      string
	ValueOrderIcon string

	ShowConfigDetails bool
	LinkBeaconchain   string
	LinkEtherscan     string
	LinkDataAPI       string
	RelayURL          string
}

type Webserver

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

func NewWebserver

func NewWebserver(opts *WebserverOpts) (*Webserver, error)

func (*Webserver) StartServer

func (srv *Webserver) StartServer() (err error)

type WebserverOpts

type WebserverOpts struct {
	ListenAddress  string
	RelayPubkeyHex string
	NetworkDetails *common.EthNetworkDetails
	Redis          *datastore.RedisCache
	DB             *database.DatabaseService
	Log            *logrus.Entry

	ShowConfigDetails bool
	LinkBeaconchain   string
	LinkEtherscan     string
	LinkDataAPI       string
	RelayURL          string
}

Jump to

Keyboard shortcuts

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