Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Proto Kms
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
danet
Proto Kms
Commits
bc726dab
Commit
bc726dab
authored
1 year ago
by
Martin Stiemerling
Browse files
Options
Downloads
Patches
Plain Diff
Function to check power status
parent
80e9d9ca
Branches
Branches containing commit
No related tags found
1 merge request
!9
First working draft version
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
quantumlayer/quantumlayer-emu-prng.go
+4
-0
4 additions, 0 deletions
quantumlayer/quantumlayer-emu-prng.go
quantumlayer/quantumlayer.go
+1
-0
1 addition, 0 deletions
quantumlayer/quantumlayer.go
with
5 additions
and
0 deletions
quantumlayer/quantumlayer-emu-prng.go
+
4
−
0
View file @
bc726dab
...
...
@@ -238,6 +238,10 @@ func (qlemuprng *QuantumlayerEmuPRNG) GetKeyBatchLocal() (QuantumLayerBulkKey, e
return
qlemuprng
.
myNumbers
.
GetBulk
()
}
func
(
qlemuprng
*
QuantumlayerEmuPRNG
)
GetStatus
()
(
poweredOn
bool
)
{
return
qlemuprng
.
poweron
}
type
NumberStore
struct
{
mu
sync
.
Mutex
maxBytes
int
...
...
This diff is collapsed.
Click to expand it.
quantumlayer/quantumlayer.go
+
1
−
0
View file @
bc726dab
...
...
@@ -14,6 +14,7 @@ type QuantumLayer interface {
Configure
(
...
string
)
// configure the interface, e.g., used IP/Port config if emulated
PowerOn
()
// switch on 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
RemovePeer
()
// Remmoves a Quantum Layer Peer to the peer list
GetLocalQLPort
()
// Returns the information about the local quantum layer IP and port
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment