Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func (*API) GetAllClients ¶
func (*API) NotifyWSClientsChange ¶
func (a *API) NotifyWSClientsChange()
func (*API) RegisterWSClient ¶
type Config ¶
type Config struct { Port string DevCorsEnabled bool DevCorsHost string Network types.NetworkConfig }
type ReadableClient ¶
type ReadableClient struct { ID string `json:"id"` Name string `json:"name"` BeaconClientVersion string `json:"beaconClientVersion"` GenesisTime string `json:"genesisTime"` LatestHead types.ChainHead `json:"latestHead"` Online bool `json:"online"` Peers *int64 `json:"peers"` AttestationsInPool *int64 `json:"attestations"` Syncing *bool `json:"syncing"` SyncingRate *float64 `json:"syncingRate"` Location *geoip.Location `json:"location"` MemoryUsage *int64 `json:"memoryUsage"` ClientVersion string `json:"clientVersion"` ClientVersionStatus string `json:"clientVersionStatus"` }
func (*ReadableClient) FromClient ¶
func (c *ReadableClient) FromClient(client store.Client) ReadableClient
Click to show internal directories.
Click to hide internal directories.