client

package
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Unlicense Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pooling

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

func NewPooling

func NewPooling(ctx context.Context, dialer func(ctx context.Context) (jrpc.Conn, error), max int) (*Pooling, error)

func (*Pooling) Close

func (p *Pooling) Close() error

func (*Pooling) Closed

func (p *Pooling) Closed() <-chan struct{}

func (*Pooling) Do

func (r *Pooling) Do(ctx context.Context, result any, method string, params any) error

func (*Pooling) Mount

func (p *Pooling) Mount(m jsonrpc.Middleware)

func (*Pooling) Notify added in v0.2.24

func (p *Pooling) Notify(ctx context.Context, method string, params any) error

func (*Pooling) Subscribe added in v0.2.24

func (p *Pooling) Subscribe(ctx context.Context, namespace string, channel any, args any) (subscription.ClientSubscription, error)

type Reconnecting

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

func NewReconnecting

func NewReconnecting(dialer func(ctx context.Context) (jrpc.Conn, error)) *Reconnecting

func (*Reconnecting) Close

func (r *Reconnecting) Close() error

why would you want to do this....

func (*Reconnecting) Closed

func (r *Reconnecting) Closed() <-chan struct{}

never....

func (*Reconnecting) Do

func (r *Reconnecting) Do(ctx context.Context, result any, method string, params any) error

func (*Reconnecting) Mount

func (r *Reconnecting) Mount(m jsonrpc.Middleware)

func (*Reconnecting) Notify added in v0.2.25

func (r *Reconnecting) Notify(ctx context.Context, method string, params any) error

Jump to

Keyboard shortcuts

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