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
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 ¶
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 }
Click to show internal directories.
Click to hide internal directories.