magent_edge_base

package
v0.0.0-...-4adfca9 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const NODE_RETRY_INTERVAL_MS = 3000
View Source
const NODE_SEARCH_INTERVAL_MS = 2000
View Source
const NUMBER_REQUESTED_TOP_NODES = 3

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentEdgeClient

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

func NewAgentEdgeClient

func NewAgentEdgeClient(conf *AgentEdgeConfig) *AgentEdgeClient

Construct the agent edge client, given a config

func (*AgentEdgeClient) EstablishEdgeRoute

func (agent *AgentEdgeClient) EstablishEdgeRoute(edgePKH string) error

Search for edge peer(s) and establish a route. Will only create one connection.

func (*AgentEdgeClient) Start

func (agent *AgentEdgeClient) Start()

Start the edge client agent and establish an edge route

type AgentEdgeConfig

type AgentEdgeConfig struct {
	BaseRouteBeaconKeyFilePath string
	EdgeRouteBeaconKeyFilePath string
	L2KeyFilePath              string
	NetworkId                  string
	BaseDir                    string
}

Jump to

Keyboard shortcuts

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