tendermint

package
v0.0.0-...-5038352 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPClient

type HTTPClient struct {
	// contains filtered or unexported fields
}

func NewHTTPClient

func NewHTTPClient(serverUrl string) *HTTPClient

func (*HTTPClient) Block

func (client *HTTPClient) Block(height uint64) (*types.Block, error)

func (*HTTPClient) BlockResults

func (client *HTTPClient) BlockResults(height uint64) (*types.BlockResults, error)

func (*HTTPClient) Genesis

func (client *HTTPClient) Genesis() (*types.Genesis, error)

func (*HTTPClient) LatestBlockHeight

func (client *HTTPClient) LatestBlockHeight() (uint64, error)

type PollingBlocksFeed

type PollingBlocksFeed struct {
	// contains filtered or unexported fields
}

func NewPollingBlocksFeed

func NewPollingBlocksFeed(
	logger usecase.Logger,
	client tendermintadapter.Client,
	options PollingBlocksFeedOptions,
) *PollingBlocksFeed

func (*PollingBlocksFeed) Poll

func (feed *PollingBlocksFeed) Poll(subscriberCh chan<- uint64) error

func (*PollingBlocksFeed) Subscribe

func (feed *PollingBlocksFeed) Subscribe(subscriberCh chan<- uint64) error

type PollingBlocksFeedOptions

type PollingBlocksFeedOptions struct {
	PollingInterval time.Duration
}

Jump to

Keyboard shortcuts

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