Documentation ¶
Index ¶
- type MacaroonCredential
- type Node
- type NodeStatus
- type 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MacaroonCredential ¶
type MacaroonCredential struct {
Admin string
}
MacaroonCredential implements the credentials.PerRPCCredentials interface.
func (*MacaroonCredential) GetRequestMetadata ¶
func (t *MacaroonCredential) GetRequestMetadata(ctx context.Context, uri ...string) (map[string]string, error)
GetRequestMetadata implements the PerRPCCredentials interface. This method is required in order to pass the wrapped macaroon into the gRPC context. With this, the macaroon will be available within the request handling scope of the ultimate gRPC server implementation.
func (*MacaroonCredential) RequireTransportSecurity ¶
func (t *MacaroonCredential) RequireTransportSecurity() bool
RequireTransportSecurity implements the PerRPCCredentials interface.
type NodeStatus ¶
type RpcClient ¶
type RpcClient struct {
// contains filtered or unexported fields
}
func NewRpcClient ¶
func NewRpcClient(config config.RpcConfig, service *core.SingleContainerService) *RpcClient
func (*RpcClient) GetServiceInfo ¶
type Service ¶
type Service struct { *core.SingleContainerService *RpcClient }
func (*Service) ConfigureRouter ¶
func (t *Service) ConfigureRouter(r *gin.RouterGroup)
Click to show internal directories.
Click to hide internal directories.