Versions in this module Expand all Collapse all v1 v1.3.0 Jan 28, 2021 v1.2.0 Dec 16, 2020 Changes in this version + const RpcRetryDelay + var NoClient = errors.New("no client") + type GrpcParams struct + Host string + Macaroon string + Port uint16 + TlsCert string + type MacaroonCredential struct + Admin string + func (t *MacaroonCredential) GetRequestMetadata(ctx context.Context, uri ...string) (map[string]string, error) + func (t *MacaroonCredential) RequireTransportSecurity() bool + type Node string + const BTC + const LTC + type NodeStatus struct + IsUp bool + Status string + type RpcClient struct + func NewRpcClient(config config.RpcConfig, service *core.SingleContainerService) *RpcClient + func (t *RpcClient) Close() error + func (t *RpcClient) Deposit(ctx context.Context, currency string, inboundLiquidity uint32) (*pb.DepositResponse, error) + func (t *RpcClient) GetServiceInfo(ctx context.Context, currency string) (*pb.GetServiceInfoResponse, error) + func (t *RpcClient) Withdraw(ctx context.Context, currency string, amount int64, address string) (*pb.CreateReverseSwapResponse, error) + type Service struct + func New(name string, services map[string]core.Service, containerName string, ...) *Service + func (t *Service) Close() error + func (t *Service) ConfigureRouter(r *gin.RouterGroup) + func (t *Service) GetInfo(node Node) (map[string]interface{}, error) + func (t *Service) GetStatus(ctx context.Context) string