Documentation
¶
Index ¶
- Variables
- func ConfigRetryHandler() error
- func CooldownEndpoint(chain string, e string) error
- func CreateChainClients() error
- func GetEndpoint(chainName string, readOnly bool) (string, error)
- func Handler(w http.ResponseWriter, r *http.Request)
- func HealthProber()
- func HotLoadConfigFile(filename string) error
- func LoadConfigFile(filename string) error
- func UnmarshalJSON(data []byte) error
- func UpdateChainBlockHeads(ctx context.Context) error
- type Chain
- type ChainEndpoint
- type JSONRPCContainer
- type JSONRPCResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Chains []*chain
)
Functions ¶
func ConfigRetryHandler ¶
func ConfigRetryHandler() error
func CooldownEndpoint ¶
func CreateChainClients ¶
func CreateChainClients() error
func HealthProber ¶
func HealthProber()
func HotLoadConfigFile ¶
func LoadConfigFile ¶
func UnmarshalJSON ¶
func UpdateChainBlockHeads ¶
Types ¶
type Chain ¶
type Chain interface { EnabledEndpoints() []*ChainEndpoint NextEndpoint() (string, error) }
type ChainEndpoint ¶
type JSONRPCContainer ¶
type JSONRPCContainer struct { Single *JSONRPCResponse Batch []JSONRPCResponse }
func (*JSONRPCContainer) Unmarshal ¶
func (c *JSONRPCContainer) Unmarshal(b []byte) error
type JSONRPCResponse ¶
Click to show internal directories.
Click to hide internal directories.