mirror of
https://github.com/lightninglabs/faraday.git
synced 2026-08-13 12:33:35 +02:00
Add ScidToPeerMap, which materialises a snapshot of every short channel id paired with the pubkey of the channel's remote peer. Forwarding-data sources index events by short channel id, but downstream analyses need to attribute behaviour to the peer, not the channel. The map skips channels whose short channel id is still zero (unconfirmed), so callers see only fully advertised channels. Coverage extends TestStore with a two-channel fixture pinning the join.
23 lines
881 B
Go
23 lines
881 B
Go
// Code generated by sqlc. DO NOT EDIT.
|
|
// versions:
|
|
// sqlc v1.25.0
|
|
|
|
package sqlc
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
type Querier interface {
|
|
GetChannelByChanPoint(ctx context.Context, channelPoint string) (Channel, error)
|
|
GetChannelByShortChanID(ctx context.Context, shortChannelID int64) (Channel, error)
|
|
GetChannelEvents(ctx context.Context, arg GetChannelEventsParams) ([]ChannelEvent, error)
|
|
GetChannels(ctx context.Context) ([]GetChannelsRow, error)
|
|
GetLatestChannelEventBefore(ctx context.Context, arg GetLatestChannelEventBeforeParams) (ChannelEvent, error)
|
|
GetPeerByPubKey(ctx context.Context, pubkey string) (Peer, error)
|
|
InsertChannel(ctx context.Context, arg InsertChannelParams) (int64, error)
|
|
InsertChannelEvent(ctx context.Context, arg InsertChannelEventParams) error
|
|
InsertPeer(ctx context.Context, pubkey string) (int64, error)
|
|
}
|
|
|
|
var _ Querier = (*Queries)(nil)
|