magent_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: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateConnectionToServicePeer

func CreateConnectionToServicePeer(peerPubKeyHash string, keyFile string, isSecure bool, peerIp string) error

Attempt to create a connection to a service node peer. This function is invoked once the public key and dh key exchanges are completed as a callback

Types

type AgentClient

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

AgentClient encapsulates a Marconi service agent

var Agent *AgentClient

func NewAgentClient

func NewAgentClient(conf *AgentConfig) *AgentClient

Return a new instance of AgentClient

func (*AgentClient) HandleRpcNodeFinderCheck

func (agent *AgentClient) HandleRpcNodeFinderCheck() string

RPC to act as a health check for the node.

func (*AgentClient) Start

func (agent *AgentClient) Start()

Start the agent daemon, connections will be created when peers are registered to this node

type AgentClientService

type AgentClientService struct{}

func (*AgentClientService) NodeFinderCheckRPC

func (a *AgentClientService) NodeFinderCheckRPC(r *http.Request, args *NodeFinderCheckArgs, reply *NodeFinderCheckReply) error

type AgentConfig

type AgentConfig struct {
	BaseRouteBeaconKeyFilePath string
	EdgeRouteBeaconKeyFilePath string
	L2KeyFilePath              string
	BaseDir                    string
}

Configuration object for a Marconi agent

type NodeFinderCheckArgs

type NodeFinderCheckArgs struct{}

type NodeFinderCheckReply

type NodeFinderCheckReply struct {
	EdgeBeaconKey string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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