liteclient

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 23 Imported by: 90

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ADNLQuery int32 = -1265895046
View Source
var ADNLQueryResponse int32 = 262964246
View Source
var AccountStateResp int32 = 1887029073
View Source
var ErrNoActiveConnections = errors.New("no active connections")
View Source
var GetMasterchainInfo int32 = -1984567762
View Source
var LSError int32 = -1146494648
View Source
var LiteServerQuery int32 = 2039219935
View Source
var MasterchainInfoResp int32 = -2055001983
View Source
var RunQueryResult int32 = -1550163605
View Source
var TCPPing int32 = 1292381082
View Source
var TCPPong int32 = -597034237
View Source
var TimeResp int32 = -380436467
View Source
var VersionResp int32 = 1510248933

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient() *Client

func (*Client) Connect

func (c *Client) Connect(ctx context.Context, addr, serverKey string) error

func (*Client) Do

func (c *Client) Do(ctx context.Context, typeID int32, payload []byte) (*LiteResponse, error)

type LiteRequest

type LiteRequest struct {
	TypeID   int32
	QueryID  []byte
	Data     []byte
	RespChan chan *LiteResponse
}

type LiteResponse

type LiteResponse struct {
	TypeID int32
	Data   []byte
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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