broadcast

package
v0.10.4-btcpay Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BroadcastServer

type BroadcastServer interface {
	Subscribe() <-chan interface{}
	CancelSubscription(<-chan interface{})
}

func NewBroadcastServer

func NewBroadcastServer(ctx context.Context, source <-chan interface{}) BroadcastServer

type ChannelEvent

type ChannelEvent struct {
	EventData
	Type      lnrpc.ChannelEventUpdate_UpdateType `json:"type"`
	ChannelId int                                 `json:"channelId"`
}

type ChannelGraphEvent

type ChannelGraphEvent struct {
	GraphEventData
	ChannelGraphEventData
	PreviousEventTime time.Time             `json:"previousEventTime"`
	PreviousEventData ChannelGraphEventData `json:"previous"`
}

type ChannelGraphEventData

type ChannelGraphEventData struct {
	Disabled         bool   `json:"disabled"`
	TimeLockDelta    uint32 `json:"timeLockDelta"`
	MinHtlc          int64  `json:"minHtlc"`
	MaxHtlcMsat      uint64 `json:"maxHtlcMsat"`
	FeeBaseMsat      int64  `json:"feeBaseMsat"`
	FeeRateMilliMsat int64  `json:"feeRateMilliMsat"`
}

type EventData

type EventData struct {
	EventTime time.Time `json:"eventTime"`
	NodeId    int       `json:"nodeId"`
}

type GraphEventData

type GraphEventData struct {
	EventData
	EventNodeId      *int `json:"eventNodeId"`
	AnnouncingNodeId *int `json:"announcingNodeId"`
	ConnectingNodeId *int `json:"connectingNodeId"`
	ChannelId        *int `json:"channelId"`
}

type InvoiceEvent

type InvoiceEvent struct {
	EventData
	AddIndex    uint64                     `json:"addIndex"`
	ValueMSat   int64                      `json:"valueMSat"`
	State       lnrpc.Invoice_InvoiceState `json:"state"`
	AmountPaid  int64                      `json:"amountPaid"`
	SettledDate time.Time                  `json:"settledDate"`
}

type NodeGraphEvent

type NodeGraphEvent struct {
	GraphEventData
	NodeGraphEventData
	PreviousEventTime time.Time          `json:"previousEventTime"`
	PreviousEventData NodeGraphEventData `json:"previous"`
}

type NodeGraphEventData

type NodeGraphEventData struct {
	Alias     string `json:"alias"`
	Color     string `json:"color"`
	Addresses string `json:"addresses"`
	Features  string `json:"features"`
}

type PeerEvent

type PeerEvent struct {
	EventData
	Type           lnrpc.PeerEvent_EventType `json:"type"`
	EventPublicKey string                    `json:"eventPublicKey"`
}

type TransactionEvent

type TransactionEvent struct {
	EventData
	Timestamp time.Time `json:"timestamp"`
	Amount    int64     `json:"amount"`
	TotalFees int64     `json:"totalFees"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL