client

package
v0.0.0-...-9dda5dc Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WSClients

type WSClients struct {
	ReqChan  chan tmtypes.RPCRequest
	StopChan chan struct{}

	//This is used to subscribe the msg from server
	Cli *tm.WSClient
	// contains filtered or unexported fields
}

func NewWSClient

func NewWSClient(remoteAddr, endpoint string, privKey *ecdsa.PrivateKey, pubkey string) (*WSClients, error)

func (*WSClients) RegisterResChannel

func (wsc *WSClients) RegisterResChannel(requestMsg chan tmtypes.RPCRequest, stopChan chan struct{}) error

func (*WSClients) SendMsg

func (wsc *WSClients) SendMsg(rsp tmtypes.RPCResponse) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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