Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Beefy ¶
type Beefy struct {
// contains filtered or unexported fields
}
Beefy exposes methods for retrieval of chain data
func (*Beefy) GetFinalizedHead ¶
GetFinalizedHead returns the hash of the latest BEEFY block
func (*Beefy) SubscribeJustifications ¶
func (b *Beefy) SubscribeJustifications() (*JustificationsSubscription, error)
SubscribeJustifications subscribes beefy justifications, returning a subscription that will receive server notifications containing the Header.
type JustificationsSubscription ¶
type JustificationsSubscription struct {
// contains filtered or unexported fields
}
JustificationsSubscription is a subscription established through one of the Client's subscribe methods.
func (*JustificationsSubscription) Chan ¶
func (s *JustificationsSubscription) Chan() <-chan types.SignedCommitment
Chan returns the subscription channel.
The channel is closed when Unsubscribe is called on the subscription.
func (*JustificationsSubscription) Err ¶
func (s *JustificationsSubscription) Err() <-chan error
Err returns the subscription error channel. The intended use of Err is to schedule resubscription when the client connection is closed unexpectedly.
The error channel receives a value when the subscription has ended due to an error. The received error is nil if Close has been called on the underlying client and no other error has occurred.
The error channel is closed when Unsubscribe is called on the subscription.
func (*JustificationsSubscription) Unsubscribe ¶
func (s *JustificationsSubscription) Unsubscribe()
Unsubscribe unsubscribes the notification and closes the error channel. It can safely be called more than once.