client

package
v0.0.0-...-b51443a Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainStatus

type ChainStatus struct {
	Accounts []string `json:"-"`
	Height   uint64   `json:"height"`
}

ChainStatus chain status include Height and so on

func (*ChainStatus) BelongTo

func (c *ChainStatus) BelongTo(account string) bool

func (*ChainStatus) Marshal

func (c *ChainStatus) Marshal() json.RawMessage

func (*ChainStatus) Topic

func (c *ChainStatus) Topic() string

func (*ChainStatus) Type

func (c *ChainStatus) Type() string

type Client

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

func New

func New(ip, port string) *Client

func (*Client) Close

func (c *Client) Close()

func (*Client) Connect

func (c *Client) Connect() error

func (*Client) HeartbeatLoop

func (c *Client) HeartbeatLoop(du time.Duration)

func (*Client) ReadLoop

func (c *Client) ReadLoop()

Jump to

Keyboard shortcuts

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