wsclient

package
v0.0.0-...-1fe6bf9 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

package wsclient provides a wrapper client around the tendermint rpc client

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WsClient

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

func NewClient

func NewClient(url string) (*WsClient, error)

func (*WsClient) SubscribeNewRound

func (ws *WsClient) SubscribeNewRound(ctx context.Context) (<-chan coretypes.ResultEvent, error)

func (*WsClient) SubscribeNewRoundStep

func (ws *WsClient) SubscribeNewRoundStep(ctx context.Context) (<-chan coretypes.ResultEvent, error)

func (*WsClient) SubscribeVotes

func (ws *WsClient) SubscribeVotes(ctx context.Context) (<-chan coretypes.ResultEvent, error)

func (*WsClient) UnsubscribeNewRound

func (ws *WsClient) UnsubscribeNewRound(ctx context.Context) error

func (*WsClient) UnsubscribeNewRoundStep

func (ws *WsClient) UnsubscribeNewRoundStep(ctx context.Context) error

func (*WsClient) UnsubscribeVotes

func (ws *WsClient) UnsubscribeVotes(ctx context.Context) error

func (*WsClient) Validators

func (ws *WsClient) Validators(ctx context.Context) ([]*types.Validator, error)

Jump to

Keyboard shortcuts

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