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 ¶
GetClientLogo returns the Twitter profile image URL for a given client.
func IsCLClient ¶
IsCLClient returns true if the client is a consensus client.
func IsELClient ¶
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.
Click to show internal directories.
Click to hide internal directories.