core

package
v0.0.0-...-7a4b066 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package core - structure representing a Gateway's current state, including setting, configuration, references to all running Gateway 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 gateway 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

	// Boolean indicates whether this gateway stores full offer
	StoreFullOffer bool

	// 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

	// The Reputation Manager
	ReputationMgr fcrreputationmgr.FCRReputationMgr
}

func GetSingleInstance

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

GetSingleInstance returns the single instance of the gateway

Jump to

Keyboard shortcuts

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