python

package
v0.0.0-...-67070f9 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	NodeName     string        `pyobj:"node_name"`
	Key          string        `pyobj:"key"`
	PrvPort      uint64        `pyobj:"prv_port"`
	PubPort      uint64        `pyobj:"pub_port"`
	P2pPrvPort   uint64        `pyobj:"p2p_prv_port"`
	P2pPubPort   uint64        `pyobj:"p2p_pub_port"`
	PrvAddr      string        `pyobj:"prv_addr"`
	PubAddr      string        `pyobj:"pub_addr"`
	PrvAddresses []interface{} `pyobj:"prv_addresses"`
	NatType      []interface{} `pyobj:"nat_type"`
}

func DictToNode

func DictToNode(m map[interface{}]interface{}) (*Node, error)

func (*Node) ToDict

func (self *Node) ToDict() map[interface{}]interface{}

type Peer

type Peer struct {
	Address  string `pyobj:"address"`
	Port     uint64 `pyobj:"port"`
	Node     *Node  `pyobj:"node"`
	NodeName string `pyobj:"node_name"`
}

func (*Peer) ToDict

func (self *Peer) ToDict() map[interface{}]interface{}

Jump to

Keyboard shortcuts

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