handler

package
v0.0.0-...-931341f Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2019 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UploadNodeLogFileTask

func UploadNodeLogFileTask()

Types

type Event

type Event struct {
	Code   int
	Tokens []string
	Error  error
}

func EventFromRawInput

func EventFromRawInput(body []byte) *Event

Parses the event from raw bytes sequence (often from the events.fifo file of some node)

Returns result even if bytes sequence was not parsed correctly. In that case, the Error field of the result would be set.

type Node

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

Represents GEO engine node in the handler. Handles reading and writing of the fifo files.

func NewNode

func NewNode() *Node

func (*Node) AttachEventsMonitor

func (node *Node) AttachEventsMonitor() error

Attempts to start internal node process.

Returns error in case if internal node process (geo engine client) failed to start properly, or connection to events fifo files can't be established correctly.

type Payment

type Payment struct {
	Source          string     `json:"coordinator"`
	Destination     string     `json:"receiver"`
	Equivalent      uint32     `json:"equivalent"`
	TransactionUUID string     `json:"transaction_uuid"`
	Paths           [][]string `json:"paths"`
}

type Topology

type Topology struct {
	Node       string   `json:"hash"`
	Neighbors  []string `json:"neighbors"`
	Equivalent uint32   `json:"equivalent"`
}

type TrustLine

type TrustLine struct {
	Source      string `json:"source"`
	Destination string `json:"destination"`
	Equivalent  uint32 `json:"equivalent"`
}

Jump to

Keyboard shortcuts

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