Documentation ¶
Index ¶
- Variables
- func GetBCNameMap(typeName string, bcState map[string]map[string]BlockchainState) map[string]BlockchainState
- func HandleNewBCInit(ev *events.BlockchainClientInitializedMessage, ...)
- func HandleStoppingBC(ev *events.BlockchainClientStoppingMessage, ...)
- func WriteConnectionStatus(info *Info) error
- type BlockchainState
- type Configuration
- type Info
Constants ¶
This section is empty.
Variables ¶
View Source
var HORIZON_SERVERS = [...]string{"firmware.bluehorizon.network", "images.bluehorizon.network"}
Functions ¶
func GetBCNameMap ¶
func GetBCNameMap(typeName string, bcState map[string]map[string]BlockchainState) map[string]BlockchainState
func HandleNewBCInit ¶
func HandleNewBCInit(ev *events.BlockchainClientInitializedMessage, bcState map[string]map[string]BlockchainState, bcStateLock *sync.Mutex)
func HandleStoppingBC ¶
func HandleStoppingBC(ev *events.BlockchainClientStoppingMessage, bcState map[string]map[string]BlockchainState, bcStateLock *sync.Mutex)
func WriteConnectionStatus ¶
Writes the server connectivity info int the Info strucure. It is used for /info api
Types ¶
type BlockchainState ¶
type BlockchainState struct {
// contains filtered or unexported fields
}
func (*BlockchainState) GetService ¶
func (b *BlockchainState) GetService() string
func (*BlockchainState) GetServicePort ¶
func (b *BlockchainState) GetServicePort() string
type Configuration ¶
type Configuration struct { ExchangeAPI string `json:"exchange_api"` ExchangeVersion string `json:"exchange_version"` MinExchVersion string `json:"required_minimum_exchange_version"` PrefExchVersion string `json:"preferred_exchange_version"` MMSAPI string `json:"mms_api"` Arch string `json:"architecture"` HorizonVersion string `json:"horizon_version"` }
Click to show internal directories.
Click to hide internal directories.