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
Click to show internal directories.
Click to hide internal directories.