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