gethws

package
v0.4.0-alpha2 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(nodeConn Connectionner, namespace string, l log.Logger) *Client

func (*Client) IsSet added in v0.3.23

func (f *Client) IsSet() bool

func (*Client) Kind

func (c *Client) Kind() string

func (*Client) ValidateBlock

func (c *Client) ValidateBlock(ctx context.Context, block *types.BuilderBlockValidationRequest) (err error)

func (*Client) ValidateBlockV2

func (c *Client) ValidateBlockV2(ctx context.Context, block *types.BuilderBlockValidationRequest) (err error)

type Conn

type Conn struct {
	Done chan struct{}
	// contains filtered or unexported fields
}

func NewConn

func NewConn(l log.Logger, input chan []byte) *Conn

func (*Conn) Close

func (conn *Conn) Close()

func (*Conn) Connect

func (conn *Conn) Connect(url string) (err error)

func (*Conn) EnqueueRPC

func (conn *Conn) EnqueueRPC(ctx context.Context, method string, content []byte)

func (*Conn) RequestRPC

func (conn *Conn) RequestRPC(ctx context.Context, method string, content []byte) (b types.RpcRawResponse, err error)

func (*Conn) Status

func (conn *Conn) Status() bool

type Connectionner

type Connectionner interface {
	Get() (*Conn, error)
}

type ReConn

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

func NewReConn

func NewReConn(l log.Logger) *ReConn

func (*ReConn) Get

func (rc *ReConn) Get() (*Conn, error)

func (*ReConn) KeepConnection

func (rc *ReConn) KeepConnection(url string, input chan []byte)

func (*ReConn) Next

func (rc *ReConn) Next() *Conn

type RespCache

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

func NewRespCache

func NewRespCache() *RespCache

func (*RespCache) Del

func (rc *RespCache) Del(id uint64)

func (*RespCache) Get

func (rc *RespCache) Get(id uint64) (ch chan types.RpcRawResponse, ok bool)

func (*RespCache) PoolGet

func (rc *RespCache) PoolGet() (ch chan types.RpcRawResponse)

func (*RespCache) PoolPut

func (rc *RespCache) PoolPut(ch chan types.RpcRawResponse)

func (*RespCache) Set

func (rc *RespCache) Set(id uint64, ch chan types.RpcRawResponse)

Jump to

Keyboard shortcuts

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