update status response signature

addresses #33
requires new daemon v0.21 to work!
This commit is contained in:
Niko Storni 2018-08-09 20:11:31 -04:00
parent e2c96944fc
commit d432ef565d
No known key found for this signature in database
GPG key ID: F37FE63398800368

View file

@ -185,24 +185,48 @@ type VersionResponse struct {
PythonVersion string `json:"python_version"` PythonVersion string `json:"python_version"`
} }
type StatusResponse struct { type StatusResponse struct {
BlockchainStatus struct { BlobManager struct {
BestBlockhash string `json:"best_blockhash"` FinishedBlobs int `json:"finished_blobs"`
Blocks int `json:"blocks"` } `json:"blob_manager"`
BlocksBehind int `json:"blocks_behind"`
} `json:"blockchain_status"`
BlocksBehind int `json:"blocks_behind"`
ConnectionStatus struct { ConnectionStatus struct {
Code string `json:"code"` Code string `json:"code"`
Message string `json:"message"` Message string `json:"message"`
} `json:"connection_status"` } `json:"connection_status"`
Dht struct {
NodeID string `json:"node_id"`
PeersInRoutingTable int `json:"peers_in_routing_table"`
} `json:"dht"`
FileManager struct {
ManagedFiles int `json:"managed_files"`
} `json:"file_manager"`
HashAnnouncer struct {
AnnounceQueueSize int `json:"announce_queue_size"`
} `json:"hash_announcer"`
InstallationID string `json:"installation_id"` InstallationID string `json:"installation_id"`
IsFirstRun bool `json:"is_first_run"` IsFirstRun bool `json:"is_first_run"`
IsRunning bool `json:"is_running"` IsRunning bool `json:"is_running"`
LbryID string `json:"lbry_id"` SkippedComponents []string `json:"skipped_components"`
StartupStatus struct { StartupStatus struct {
Code string `json:"code"` BlobManager bool `json:"blob_manager"`
Message string `json:"message"` BlockchainHeaders bool `json:"blockchain_headers"`
Database bool `json:"database"`
Dht bool `json:"dht"`
ExchangeRateManager bool `json:"exchange_rate_manager"`
FileManager bool `json:"file_manager"`
HashAnnouncer bool `json:"hash_announcer"`
PaymentRateManager bool `json:"payment_rate_manager"`
PeerProtocolServer bool `json:"peer_protocol_server"`
RateLimiter bool `json:"rate_limiter"`
StreamIdentifier bool `json:"stream_identifier"`
Upnp bool `json:"upnp"`
Wallet bool `json:"wallet"`
} `json:"startup_status"` } `json:"startup_status"`
Wallet struct {
BestBlockchain string `json:"best_blockchain"`
Blocks int `json:"blocks"`
BlocksBehind int `json:"blocks_behind"`
IsEncrypted bool `json:"is_encrypted"`
} `json:"wallet"`
} }
type ClaimListResponse struct { type ClaimListResponse struct {