Skip to content

Commit

Permalink
Scaffolding. (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelquigley committed Aug 11, 2021
1 parent 7405f25 commit d69777e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
4 changes: 4 additions & 0 deletions closer.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package dilithium

type Closer struct {
}
4 changes: 4 additions & 0 deletions txmonitor.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package dilithium

type TxMonitor struct {
}
15 changes: 10 additions & 5 deletions txportal.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,19 @@ import (
)

type TxPortal struct {
lock *sync.Mutex
tree *btree.Tree
capacity int
ready *sync.Cond
lock *sync.Mutex
tree *btree.Tree
capacity int
ready *sync.Cond
txPortalSize int
rxPortalSize int
alg TxAlgorithm
monitor *TxMonitor
closer *Closer
}

type TxAlgorithm interface {
Success()
DuplicateAck()
Retransmission()
}
}

0 comments on commit d69777e

Please sign in to comment.