Versions in this module Expand all Collapse all v1 v1.0.1 May 2, 2025 v1.0.0 Oct 14, 2024 Changes in this version + var CloseRecommendationRequest_Metric_name = map[int32]string + var CloseRecommendationRequest_Metric_value = map[string]int32 + var EntryType_name = map[int32]string + var EntryType_value = map[string]int32 + var FaradayServer_ServiceDesc = grpc.ServiceDesc + var FiatBackend_name = map[int32]string + var FiatBackend_value = map[string]int32 + var File_faraday_proto protoreflect.FileDescriptor + var Granularity_name = map[int32]string + var Granularity_value = map[string]int32 + func RegisterFaradayServerHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error + func RegisterFaradayServerHandlerClient(ctx context.Context, mux *runtime.ServeMux, client FaradayServerClient) error + func RegisterFaradayServerHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error) + func RegisterFaradayServerHandlerServer(ctx context.Context, mux *runtime.ServeMux, server FaradayServerServer) error + func RegisterFaradayServerJSONCallbacks(...) + func RegisterFaradayServerServer(s grpc.ServiceRegistrar, srv FaradayServerServer) + type BitcoinPrice struct + Currency string + Price string + PriceTimestamp uint64 + func (*BitcoinPrice) Descriptor() ([]byte, []int) + func (*BitcoinPrice) ProtoMessage() + func (x *BitcoinPrice) GetCurrency() string + func (x *BitcoinPrice) GetPrice() string + func (x *BitcoinPrice) GetPriceTimestamp() uint64 + func (x *BitcoinPrice) ProtoReflect() protoreflect.Message + func (x *BitcoinPrice) Reset() + func (x *BitcoinPrice) String() string + type ChannelInsight struct + ChanPoint string + Confirmations uint32 + FeesEarnedMsat int64 + MonitoredSeconds uint64 + Private bool + UptimeSeconds uint64 + VolumeIncomingMsat int64 + VolumeOutgoingMsat int64 + func (*ChannelInsight) Descriptor() ([]byte, []int) + func (*ChannelInsight) ProtoMessage() + func (x *ChannelInsight) GetChanPoint() string + func (x *ChannelInsight) GetConfirmations() uint32 + func (x *ChannelInsight) GetFeesEarnedMsat() int64 + func (x *ChannelInsight) GetMonitoredSeconds() uint64 + func (x *ChannelInsight) GetPrivate() bool + func (x *ChannelInsight) GetUptimeSeconds() uint64 + func (x *ChannelInsight) GetVolumeIncomingMsat() int64 + func (x *ChannelInsight) GetVolumeOutgoingMsat() int64 + func (x *ChannelInsight) ProtoReflect() protoreflect.Message + func (x *ChannelInsight) Reset() + func (x *ChannelInsight) String() string + type ChannelInsightsRequest struct + func (*ChannelInsightsRequest) Descriptor() ([]byte, []int) + func (*ChannelInsightsRequest) ProtoMessage() + func (x *ChannelInsightsRequest) ProtoReflect() protoreflect.Message + func (x *ChannelInsightsRequest) Reset() + func (x *ChannelInsightsRequest) String() string + type ChannelInsightsResponse struct + ChannelInsights []*ChannelInsight + func (*ChannelInsightsResponse) Descriptor() ([]byte, []int) + func (*ChannelInsightsResponse) ProtoMessage() + func (x *ChannelInsightsResponse) GetChannelInsights() []*ChannelInsight + func (x *ChannelInsightsResponse) ProtoReflect() protoreflect.Message + func (x *ChannelInsightsResponse) Reset() + func (x *ChannelInsightsResponse) String() string + type CloseRecommendationRequest struct + Metric CloseRecommendationRequest_Metric + MinimumMonitored int64 + func (*CloseRecommendationRequest) Descriptor() ([]byte, []int) + func (*CloseRecommendationRequest) ProtoMessage() + func (x *CloseRecommendationRequest) GetMetric() CloseRecommendationRequest_Metric + func (x *CloseRecommendationRequest) GetMinimumMonitored() int64 + func (x *CloseRecommendationRequest) ProtoReflect() protoreflect.Message + func (x *CloseRecommendationRequest) Reset() + func (x *CloseRecommendationRequest) String() string + type CloseRecommendationRequest_Metric int32 + const CloseRecommendationRequest_INCOMING_VOLUME + const CloseRecommendationRequest_OUTGOING_VOLUME + const CloseRecommendationRequest_REVENUE + const CloseRecommendationRequest_TOTAL_VOLUME + const CloseRecommendationRequest_UNKNOWN + const CloseRecommendationRequest_UPTIME + func (CloseRecommendationRequest_Metric) Descriptor() protoreflect.EnumDescriptor + func (CloseRecommendationRequest_Metric) EnumDescriptor() ([]byte, []int) + func (CloseRecommendationRequest_Metric) Type() protoreflect.EnumType + func (x CloseRecommendationRequest_Metric) Enum() *CloseRecommendationRequest_Metric + func (x CloseRecommendationRequest_Metric) Number() protoreflect.EnumNumber + func (x CloseRecommendationRequest_Metric) String() string + type CloseRecommendationsResponse struct + ConsideredChannels int32 + Recommendations []*Recommendation + TotalChannels int32 + func (*CloseRecommendationsResponse) Descriptor() ([]byte, []int) + func (*CloseRecommendationsResponse) ProtoMessage() + func (x *CloseRecommendationsResponse) GetConsideredChannels() int32 + func (x *CloseRecommendationsResponse) GetRecommendations() []*Recommendation + func (x *CloseRecommendationsResponse) GetTotalChannels() int32 + func (x *CloseRecommendationsResponse) ProtoReflect() protoreflect.Message + func (x *CloseRecommendationsResponse) Reset() + func (x *CloseRecommendationsResponse) String() string + type CloseReportRequest struct + ChannelPoint string + func (*CloseReportRequest) Descriptor() ([]byte, []int) + func (*CloseReportRequest) ProtoMessage() + func (x *CloseReportRequest) GetChannelPoint() string + func (x *CloseReportRequest) ProtoReflect() protoreflect.Message + func (x *CloseReportRequest) Reset() + func (x *CloseReportRequest) String() string + type CloseReportResponse struct + ChannelInitiator bool + ChannelPoint string + CloseFee string + CloseTxid string + CloseType string + OpenFee string + func (*CloseReportResponse) Descriptor() ([]byte, []int) + func (*CloseReportResponse) ProtoMessage() + func (x *CloseReportResponse) GetChannelInitiator() bool + func (x *CloseReportResponse) GetChannelPoint() string + func (x *CloseReportResponse) GetCloseFee() string + func (x *CloseReportResponse) GetCloseTxid() string + func (x *CloseReportResponse) GetCloseType() string + func (x *CloseReportResponse) GetOpenFee() string + func (x *CloseReportResponse) ProtoReflect() protoreflect.Message + func (x *CloseReportResponse) Reset() + func (x *CloseReportResponse) String() string + type CustomCategory struct + LabelPatterns []string + Name string + OffChain bool + OnChain bool + func (*CustomCategory) Descriptor() ([]byte, []int) + func (*CustomCategory) ProtoMessage() + func (x *CustomCategory) GetLabelPatterns() []string + func (x *CustomCategory) GetName() string + func (x *CustomCategory) GetOffChain() bool + func (x *CustomCategory) GetOnChain() bool + func (x *CustomCategory) ProtoReflect() protoreflect.Message + func (x *CustomCategory) Reset() + func (x *CustomCategory) String() string + type EntryType int32 + const EntryType_CHANNEL_CLOSE + const EntryType_CHANNEL_CLOSE_FEE + const EntryType_CHANNEL_OPEN_FEE + const EntryType_CIRCULAR_FEE + const EntryType_CIRCULAR_PAYMENT + const EntryType_CIRCULAR_RECEIPT + const EntryType_FEE + const EntryType_FORWARD + const EntryType_FORWARD_FEE + const EntryType_LOCAL_CHANNEL_OPEN + const EntryType_PAYMENT + const EntryType_RECEIPT + const EntryType_REMOTE_CHANNEL_OPEN + const EntryType_SWEEP + const EntryType_SWEEP_FEE + const EntryType_UNKNOWN + func (EntryType) Descriptor() protoreflect.EnumDescriptor + func (EntryType) EnumDescriptor() ([]byte, []int) + func (EntryType) Type() protoreflect.EnumType + func (x EntryType) Enum() *EntryType + func (x EntryType) Number() protoreflect.EnumNumber + func (x EntryType) String() string + type ExchangeRate struct + BtcPrice *BitcoinPrice + Timestamp uint64 + func (*ExchangeRate) Descriptor() ([]byte, []int) + func (*ExchangeRate) ProtoMessage() + func (x *ExchangeRate) GetBtcPrice() *BitcoinPrice + func (x *ExchangeRate) GetTimestamp() uint64 + func (x *ExchangeRate) ProtoReflect() protoreflect.Message + func (x *ExchangeRate) Reset() + func (x *ExchangeRate) String() string + type ExchangeRateRequest struct + CustomPrices []*BitcoinPrice + FiatBackend FiatBackend + Granularity Granularity + Timestamps []uint64 + func (*ExchangeRateRequest) Descriptor() ([]byte, []int) + func (*ExchangeRateRequest) ProtoMessage() + func (x *ExchangeRateRequest) GetCustomPrices() []*BitcoinPrice + func (x *ExchangeRateRequest) GetFiatBackend() FiatBackend + func (x *ExchangeRateRequest) GetGranularity() Granularity + func (x *ExchangeRateRequest) GetTimestamps() []uint64 + func (x *ExchangeRateRequest) ProtoReflect() protoreflect.Message + func (x *ExchangeRateRequest) Reset() + func (x *ExchangeRateRequest) String() string + type ExchangeRateResponse struct + Rates []*ExchangeRate + func (*ExchangeRateResponse) Descriptor() ([]byte, []int) + func (*ExchangeRateResponse) ProtoMessage() + func (x *ExchangeRateResponse) GetRates() []*ExchangeRate + func (x *ExchangeRateResponse) ProtoReflect() protoreflect.Message + func (x *ExchangeRateResponse) Reset() + func (x *ExchangeRateResponse) String() string + type FaradayServerClient interface + ChannelInsights func(ctx context.Context, in *ChannelInsightsRequest, opts ...grpc.CallOption) (*ChannelInsightsResponse, error) + CloseReport func(ctx context.Context, in *CloseReportRequest, opts ...grpc.CallOption) (*CloseReportResponse, error) + ExchangeRate func(ctx context.Context, in *ExchangeRateRequest, opts ...grpc.CallOption) (*ExchangeRateResponse, error) + NodeAudit func(ctx context.Context, in *NodeAuditRequest, opts ...grpc.CallOption) (*NodeAuditResponse, error) + OutlierRecommendations func(ctx context.Context, in *OutlierRecommendationsRequest, ...) (*CloseRecommendationsResponse, error) + RevenueReport func(ctx context.Context, in *RevenueReportRequest, opts ...grpc.CallOption) (*RevenueReportResponse, error) + ThresholdRecommendations func(ctx context.Context, in *ThresholdRecommendationsRequest, ...) (*CloseRecommendationsResponse, error) + func NewFaradayServerClient(cc grpc.ClientConnInterface) FaradayServerClient + type FaradayServerServer interface + ChannelInsights func(context.Context, *ChannelInsightsRequest) (*ChannelInsightsResponse, error) + CloseReport func(context.Context, *CloseReportRequest) (*CloseReportResponse, error) + ExchangeRate func(context.Context, *ExchangeRateRequest) (*ExchangeRateResponse, error) + NodeAudit func(context.Context, *NodeAuditRequest) (*NodeAuditResponse, error) + OutlierRecommendations func(context.Context, *OutlierRecommendationsRequest) (*CloseRecommendationsResponse, error) + RevenueReport func(context.Context, *RevenueReportRequest) (*RevenueReportResponse, error) + ThresholdRecommendations func(context.Context, *ThresholdRecommendationsRequest) (*CloseRecommendationsResponse, error) + type FiatBackend int32 + const FiatBackend_COINCAP + const FiatBackend_COINDESK + const FiatBackend_COINGECKO + const FiatBackend_CUSTOM + const FiatBackend_UNKNOWN_FIATBACKEND + func (FiatBackend) Descriptor() protoreflect.EnumDescriptor + func (FiatBackend) EnumDescriptor() ([]byte, []int) + func (FiatBackend) Type() protoreflect.EnumType + func (x FiatBackend) Enum() *FiatBackend + func (x FiatBackend) Number() protoreflect.EnumNumber + func (x FiatBackend) String() string + type Granularity int32 + const Granularity_DAY + const Granularity_FIFTEEN_MINUTES + const Granularity_FIVE_MINUTES + const Granularity_HOUR + const Granularity_MINUTE + const Granularity_SIX_HOURS + const Granularity_THIRTY_MINUTES + const Granularity_TWELVE_HOURS + const Granularity_UNKNOWN_GRANULARITY + func (Granularity) Descriptor() protoreflect.EnumDescriptor + func (Granularity) EnumDescriptor() ([]byte, []int) + func (Granularity) Type() protoreflect.EnumType + func (x Granularity) Enum() *Granularity + func (x Granularity) Number() protoreflect.EnumNumber + func (x Granularity) String() string + type NodeAuditRequest struct + CustomCategories []*CustomCategory + CustomPrices []*BitcoinPrice + DisableFiat bool + EndTime uint64 + FiatBackend FiatBackend + Granularity Granularity + StartTime uint64 + func (*NodeAuditRequest) Descriptor() ([]byte, []int) + func (*NodeAuditRequest) ProtoMessage() + func (x *NodeAuditRequest) GetCustomCategories() []*CustomCategory + func (x *NodeAuditRequest) GetCustomPrices() []*BitcoinPrice + func (x *NodeAuditRequest) GetDisableFiat() bool + func (x *NodeAuditRequest) GetEndTime() uint64 + func (x *NodeAuditRequest) GetFiatBackend() FiatBackend + func (x *NodeAuditRequest) GetGranularity() Granularity + func (x *NodeAuditRequest) GetStartTime() uint64 + func (x *NodeAuditRequest) ProtoReflect() protoreflect.Message + func (x *NodeAuditRequest) Reset() + func (x *NodeAuditRequest) String() string + type NodeAuditResponse struct + Reports []*ReportEntry + func (*NodeAuditResponse) Descriptor() ([]byte, []int) + func (*NodeAuditResponse) ProtoMessage() + func (x *NodeAuditResponse) GetReports() []*ReportEntry + func (x *NodeAuditResponse) ProtoReflect() protoreflect.Message + func (x *NodeAuditResponse) Reset() + func (x *NodeAuditResponse) String() string + type OutlierRecommendationsRequest struct + OutlierMultiplier float32 + RecRequest *CloseRecommendationRequest + func (*OutlierRecommendationsRequest) Descriptor() ([]byte, []int) + func (*OutlierRecommendationsRequest) ProtoMessage() + func (x *OutlierRecommendationsRequest) GetOutlierMultiplier() float32 + func (x *OutlierRecommendationsRequest) GetRecRequest() *CloseRecommendationRequest + func (x *OutlierRecommendationsRequest) ProtoReflect() protoreflect.Message + func (x *OutlierRecommendationsRequest) Reset() + func (x *OutlierRecommendationsRequest) String() string + type PairReport struct + AmountIncomingMsat int64 + AmountOutgoingMsat int64 + FeesIncomingMsat int64 + FeesOutgoingMsat int64 + func (*PairReport) Descriptor() ([]byte, []int) + func (*PairReport) ProtoMessage() + func (x *PairReport) GetAmountIncomingMsat() int64 + func (x *PairReport) GetAmountOutgoingMsat() int64 + func (x *PairReport) GetFeesIncomingMsat() int64 + func (x *PairReport) GetFeesOutgoingMsat() int64 + func (x *PairReport) ProtoReflect() protoreflect.Message + func (x *PairReport) Reset() + func (x *PairReport) String() string + type Recommendation struct + ChanPoint string + RecommendClose bool + Value float32 + func (*Recommendation) Descriptor() ([]byte, []int) + func (*Recommendation) ProtoMessage() + func (x *Recommendation) GetChanPoint() string + func (x *Recommendation) GetRecommendClose() bool + func (x *Recommendation) GetValue() float32 + func (x *Recommendation) ProtoReflect() protoreflect.Message + func (x *Recommendation) Reset() + func (x *Recommendation) String() string + type ReportEntry struct + Amount uint64 + Asset string + BtcPrice *BitcoinPrice + Credit bool + CustomCategory string + Fiat string + Note string + OnChain bool + Reference string + Timestamp uint64 + Txid string + Type EntryType + func (*ReportEntry) Descriptor() ([]byte, []int) + func (*ReportEntry) ProtoMessage() + func (x *ReportEntry) GetAmount() uint64 + func (x *ReportEntry) GetAsset() string + func (x *ReportEntry) GetBtcPrice() *BitcoinPrice + func (x *ReportEntry) GetCredit() bool + func (x *ReportEntry) GetCustomCategory() string + func (x *ReportEntry) GetFiat() string + func (x *ReportEntry) GetNote() string + func (x *ReportEntry) GetOnChain() bool + func (x *ReportEntry) GetReference() string + func (x *ReportEntry) GetTimestamp() uint64 + func (x *ReportEntry) GetTxid() string + func (x *ReportEntry) GetType() EntryType + func (x *ReportEntry) ProtoReflect() protoreflect.Message + func (x *ReportEntry) Reset() + func (x *ReportEntry) String() string + type RevenueReport struct + PairReports map[string]*PairReport + TargetChannel string + func (*RevenueReport) Descriptor() ([]byte, []int) + func (*RevenueReport) ProtoMessage() + func (x *RevenueReport) GetPairReports() map[string]*PairReport + func (x *RevenueReport) GetTargetChannel() string + func (x *RevenueReport) ProtoReflect() protoreflect.Message + func (x *RevenueReport) Reset() + func (x *RevenueReport) String() string + type RevenueReportRequest struct + ChanPoints []string + EndTime uint64 + StartTime uint64 + func (*RevenueReportRequest) Descriptor() ([]byte, []int) + func (*RevenueReportRequest) ProtoMessage() + func (x *RevenueReportRequest) GetChanPoints() []string + func (x *RevenueReportRequest) GetEndTime() uint64 + func (x *RevenueReportRequest) GetStartTime() uint64 + func (x *RevenueReportRequest) ProtoReflect() protoreflect.Message + func (x *RevenueReportRequest) Reset() + func (x *RevenueReportRequest) String() string + type RevenueReportResponse struct + Reports []*RevenueReport + func (*RevenueReportResponse) Descriptor() ([]byte, []int) + func (*RevenueReportResponse) ProtoMessage() + func (x *RevenueReportResponse) GetReports() []*RevenueReport + func (x *RevenueReportResponse) ProtoReflect() protoreflect.Message + func (x *RevenueReportResponse) Reset() + func (x *RevenueReportResponse) String() string + type ThresholdRecommendationsRequest struct + RecRequest *CloseRecommendationRequest + ThresholdValue float32 + func (*ThresholdRecommendationsRequest) Descriptor() ([]byte, []int) + func (*ThresholdRecommendationsRequest) ProtoMessage() + func (x *ThresholdRecommendationsRequest) GetRecRequest() *CloseRecommendationRequest + func (x *ThresholdRecommendationsRequest) GetThresholdValue() float32 + func (x *ThresholdRecommendationsRequest) ProtoReflect() protoreflect.Message + func (x *ThresholdRecommendationsRequest) Reset() + func (x *ThresholdRecommendationsRequest) String() string + type UnimplementedFaradayServerServer struct + func (UnimplementedFaradayServerServer) ChannelInsights(context.Context, *ChannelInsightsRequest) (*ChannelInsightsResponse, error) + func (UnimplementedFaradayServerServer) CloseReport(context.Context, *CloseReportRequest) (*CloseReportResponse, error) + func (UnimplementedFaradayServerServer) ExchangeRate(context.Context, *ExchangeRateRequest) (*ExchangeRateResponse, error) + func (UnimplementedFaradayServerServer) NodeAudit(context.Context, *NodeAuditRequest) (*NodeAuditResponse, error) + func (UnimplementedFaradayServerServer) OutlierRecommendations(context.Context, *OutlierRecommendationsRequest) (*CloseRecommendationsResponse, error) + func (UnimplementedFaradayServerServer) RevenueReport(context.Context, *RevenueReportRequest) (*RevenueReportResponse, error) + func (UnimplementedFaradayServerServer) ThresholdRecommendations(context.Context, *ThresholdRecommendationsRequest) (*CloseRecommendationsResponse, error) + type UnsafeFaradayServerServer interface Other modules containing this package github.com/lightninglabs/faraday