websocket

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2022 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 Client

type Client struct {
	URL string
	Ctx context.Context

	Messages chan interface{}
	// contains filtered or unexported fields
}

Client is used for connecting to websocket endpoints.

func (*Client) Close

func (c *Client) Close() (err error)

Close closes the connection.

func (*Client) Connect

func (c *Client) Connect() (err error)

Connect connects to the server.

type Confirmation

type Confirmation struct {
	Time    time.Time
	Account string
	Amount  *rpc.RawAmount
	Hash    rpc.BlockHash
	Type    string `json:"confirmation_type"`
	Block   *rpc.Block
}

Confirmation reports a block confirmation.

Jump to

Keyboard shortcuts

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