1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Lightwallet service RPC implementations.

use std::sync::{atomic::AtomicBool, Arc};

pub mod service;

#[derive(Debug, Clone)]
/// Configuration data for gRPC server.
pub struct GrpcClient {
    /// Lightwalletd uri.
    /// Used by grpc_passthrough to pass on unimplemented RPCs.
    pub lightwalletd_uri: http::Uri,
    /// Zebrad uri.
    pub zebrad_uri: http::Uri,
    /// Represents the Online status of the gRPC server.
    pub online: Arc<AtomicBool>,
}