Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMissingRelayPubkey = errors.New("missing relay public key")
ErrMissingRelayPubkey is returned if a new RelayEntry URL has no public key.
View Source
var ErrPointAtInfinityPubkey = errors.New("relay public key cannot be the point-at-infinity")
ErrPointAtInfinityPubkey is returned if a new RelayEntry URL has point-at-infinity public key.
Functions ¶
func RelayEntriesToStrings ¶
func RelayEntriesToStrings(relays []RelayEntry) []string
RelayEntriesToStrings returns the string representation of a list of relay entries
Types ¶
type RelayEntry ¶
RelayEntry represents a relay that mev-boost connects to.
func NewRelayEntry ¶
func NewRelayEntry(relayURL string) (entry RelayEntry, err error)
NewRelayEntry creates a new instance based on an input string relayURL can be IP@PORT, PUBKEY@IP:PORT, https://IP, etc.
func (*RelayEntry) GetURI ¶
func (r *RelayEntry) GetURI(path string) string
GetURI returns the full request URI with scheme, host, path and args for the relay.
func (*RelayEntry) String ¶
func (r *RelayEntry) String() string
Click to show internal directories.
Click to hide internal directories.