Documentation ¶
Index ¶
- func Callback(ctx context.Context, d time.Duration, fn func() error)
- type Client
- func (c Client) BlockCallback(ctx context.Context, fn func(height int64) error)
- func (c Client) ConsensusParams(ctx context.Context, fn func(coretypes.ResultConsensusParams) error)
- func (c Client) Health(ctx context.Context, fn func(*coretypes.ResultHealth, error) error)
- func (c Client) NetInfo(ctx context.Context, fn func(coretypes.ResultNetInfo) error)
- func (c Client) NewBlock(ctx context.Context, fn func(types.EventDataNewBlock) error) error
- func (c Client) NewRoundStep(ctx context.Context, fn func(types.EventDataRoundState) error) error
- func (c Client) Subscribe(ctx context.Context, subscriber, query string, ...) error
- func (c Client) Tx(ctx context.Context, fn func(types.EventDataTx) error) error
- func (c Client) Validators(ctx context.Context, fn func(coretypes.ResultValidators) error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
cosmosclient.Client
}
Client gex client.
func (Client) BlockCallback ¶
BlockCallback execute the callback for each new block.
func (Client) ConsensusParams ¶
func (c Client) ConsensusParams(ctx context.Context, fn func(coretypes.ResultConsensusParams) error)
ConsensusParams fetch the consensus parameters for each new block.
func (Client) NewRoundStep ¶
NewRoundStep listen the new round step event from the websocket subscriber.
func (Client) Subscribe ¶
func (c Client) Subscribe(ctx context.Context, subscriber, query string, fn func(coretypes.ResultEvent) error) error
Subscribe listen websocket events based in the query.
func (Client) Validators ¶
Validators fetch the validators information for each new block.
Click to show internal directories.
Click to hide internal directories.