core

package
v0.0.0-...-71850de Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package core - structure representing a Provider's current state, including setting, configuration, references to all running Provider APIs of this instance.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Core

type Core struct {
	// Settings
	Settings *settings.AppSettings

	// Boolean indicating whether or not this provider has been initialised
	Initialised bool
	Ready       chan bool

	// Node ID
	NodeID string
	// Wallet Address
	WalletAddr string

	// Message signing key and a lock protecting the access
	MsgSigningKey     string
	MsgSigningKeyVer  byte
	MsgSigningKeyLock sync.RWMutex

	OfferSigningKey    string
	OfferSigningPubKey string

	// The Admin Server
	AdminServer fcradminserver.FCRAdminServer

	// The P2P Server
	P2PServer fcrserver.FCRServer

	// The Peer Manager
	PeerMgr fcrpeermgr.FCRPeerMgr

	// The Payment Manager
	PaymentMgr fcrpaymentmgr.FCRPaymentMgr

	// The Offer Manager
	OfferMgr fcroffermgr.FCROfferMgr
}

func GetSingleInstance

func GetSingleInstance(confs ...*settings.AppSettings) *Core

GetSingleInstance returns the single instance of the provider

Jump to

Keyboard shortcuts

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