clients

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2025 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CLLighthouse = "lighthouse"
	CLPrysm      = "prysm"
	CLLodestar   = "lodestar"
	CLNimbus     = "nimbus"
	CLTeku       = "teku"
	CLGrandine   = "grandine"
	ELNethermind = "nethermind"
	ELNimbusel   = "nimbusel"
	ELBesu       = "besu"
	ELGeth       = "geth"
	ELReth       = "reth"
	ELErigon     = "erigon"
	ELEthereumJS = "ethereumjs"
)

Define a list of known clients.

Variables

View Source
var (
	// Buckets of known clients.
	CLClients = []string{CLLighthouse, CLPrysm, CLLodestar, CLNimbus, CLTeku, CLGrandine}
	ELClients = []string{ELNethermind, ELNimbusel, ELBesu, ELGeth, ELReth, ELErigon, ELEthereumJS}
	// TeamRoles maps clients to their respective team's Discord role.
	TeamRoles = map[string]string{
		CLLighthouse: "sigmaprime",
		CLPrysm:      "prysmatic",
		CLLodestar:   "chainsafe",
		CLNimbus:     "nethermind",
		CLTeku:       "teku",
		CLGrandine:   "grandine",
		ELNethermind: "nethermind",
		ELNimbusel:   "nethermind",
		ELBesu:       "besu",
		ELGeth:       "geth",
		ELReth:       "reth",
		ELErigon:     "erigon",
		ELEthereumJS: "ethereumjs",
	}
	// AdminRoles maps admin roles to their respective Discord role.
	AdminRoles = map[string]string{
		"ef":    "ef",
		"admin": "admin",
		"mod":   "mod",
	}
)

Functions

func GetClientLogo(client string) string

GetClientLogo returns the Twitter profile image URL for a given client.

func IsCLClient

func IsCLClient(client string) bool

IsCLClient returns true if the client is a consensus client.

func IsELClient

func IsELClient(client string) bool

IsELClient returns true if the client is an execution client.

Types

type ClientType

type ClientType string

ClientType represents the type of client.

const (
	ClientTypeAll ClientType = ".*"
	ClientTypeCL  ClientType = "consensus"
	ClientTypeEL  ClientType = "execution"
)

Define the client types.

func (ClientType) String

func (c ClientType) String() string

String returns the string representation of a client type.

Jump to

Keyboard shortcuts

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