Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server struct {
Enforcer *service.Service[validatorrpc.ValidatorServiceClient]
Bitcoind *service.Service[*server.Bitcoind]
Wallet *service.Service[validatorrpc.WalletServiceClient]
Crypto *service.Service[cryptorpc.CryptoServiceClient]
// contains filtered or unexported fields
}
Server exposes a set of Connect APIs over both gRPC and HTTP. Reflection is enabled.
func NewServer ¶
func NewServer( ctx context.Context, bitcoindConnector service.Connector[*server.Bitcoind], walletConnector service.Connector[validatorrpc.WalletServiceClient], enforcerConnector service.Connector[validatorrpc.ValidatorServiceClient], cryptoConnector service.Connector[cryptorpc.CryptoServiceClient], database *sql.DB, onShutdown func(), ) (*Server, error)
New creates a new Server with interceptors applied.
Click to show internal directories.
Click to hide internal directories.