wsconn

package
v0.0.0-...-7274d62 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallOp

type CallOp struct {
	Method string
	Params []interface{}
}

type SubscriptionResp

type SubscriptionResp struct {
	Jsonrpc string `json:"jsonrpc"`
	Result  int64  `json:"result"`
	Id      int64  `json:"id"`
}

type WsConn

type WsConn struct {
	Conn *websocket.Conn
	// contains filtered or unexported fields
}

func NewWsConn

func NewWsConn(wsUrl string) *WsConn

func (*WsConn) Call

func (w *WsConn) Call(ctx context.Context, op CallOp, receiveMsgCh chan []byte) error

Jump to

Keyboard shortcuts

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