Skip to content
Snippets Groups Projects
Commit bc726dab authored by Martin Stiemerling's avatar Martin Stiemerling :speech_balloon:
Browse files

Function to check power status

parent 80e9d9ca
No related branches found
No related tags found
1 merge request!9First working draft version
...@@ -238,6 +238,10 @@ func (qlemuprng *QuantumlayerEmuPRNG) GetKeyBatchLocal() (QuantumLayerBulkKey, e ...@@ -238,6 +238,10 @@ func (qlemuprng *QuantumlayerEmuPRNG) GetKeyBatchLocal() (QuantumLayerBulkKey, e
return qlemuprng.myNumbers.GetBulk() return qlemuprng.myNumbers.GetBulk()
} }
func (qlemuprng *QuantumlayerEmuPRNG) GetStatus() (poweredOn bool) {
return qlemuprng.poweron
}
type NumberStore struct { type NumberStore struct {
mu sync.Mutex mu sync.Mutex
maxBytes int maxBytes int
......
...@@ -14,6 +14,7 @@ type QuantumLayer interface { ...@@ -14,6 +14,7 @@ type QuantumLayer interface {
Configure(...string) // configure the interface, e.g., used IP/Port config if emulated Configure(...string) // configure the interface, e.g., used IP/Port config if emulated
PowerOn() // switch on the quantum layer element PowerOn() // switch on the quantum layer element
PowerOff() // switch off the quantum layer element PowerOff() // switch off the quantum layer element
GetStatus() (poweredOn bool) // returns true if quantum layer element is powered on
AddPeer() // Adds a Quantum Layer Peer to the peer list AddPeer() // Adds a Quantum Layer Peer to the peer list
RemovePeer() // Remmoves a Quantum Layer Peer to the peer list RemovePeer() // Remmoves a Quantum Layer Peer to the peer list
GetLocalQLPort() // Returns the information about the local quantum layer IP and port GetLocalQLPort() // Returns the information about the local quantum layer IP and port
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment