client

package
v0.0.0-...-95d8435 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2023 License: Apache-2.0 Imports: 3 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 {
	GetEvents        func(ctx context.Context, query types.EventQuery, cursor *types.EventID, limit uint, descendingOrder bool) (*types.EventPage, error)
	SubscribeEvent   func(ctx context.Context, query types.SubscribeEventQuery) (uint64, error)
	UnsubscribeEvent func(ctx context.Context, id uint64) (bool, error)
}

Client is the client interface for interacting with the sui node.

func NewClient

func NewClient(ctx context.Context, addr string, hd SubscribeEventHandler) (*Client, func(), error)

NewClient creates a new client.

type SubscribeEventHandler

type SubscribeEventHandler interface {
	SubscribeEvent(ctx context.Context, r jsonrpc.RawParams) error
}

Jump to

Keyboard shortcuts

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