net

package
v0.0.0-...-c387957 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartNanoWSClient

func StartNanoWSClient(wsUrl string, callbackChan *chan *WSCallbackMsg)

Types

type ConfirmationResponse

type ConfirmationResponse struct {
	Topic   string                 `json:"topic"`
	Time    string                 `json:"time"`
	Message map[string]interface{} `json:"message"`
}

type WSCallbackBlock

type WSCallbackBlock struct {
	Type           string `json:"type"`
	Account        string `json:"account"`
	Previous       string `json:"previous"`
	Representative string `json:"representative"`
	Balance        string `json:"balance"`
	Link           string `json:"link"`
	LinkAsAccount  string `json:"link_as_account"`
	Work           string `json:"work"`
	Signature      string `json:"signature"`
	Destination    string `json:"destination"`
	Source         string `json:"source"`
	Subtype        string `json:"subtype"`
}

type WSCallbackMsg

type WSCallbackMsg struct {
	IsSend  string          `json:"is_send"`
	Block   WSCallbackBlock `json:"block"`
	Account string          `json:"account"`
	Hash    string          `json:"hash"`
	Amount  string          `json:"amount"`
}

Jump to

Keyboard shortcuts

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