aboutsummaryrefslogtreecommitdiffstats
path: root/common/sequencer/option.go
diff options
context:
space:
mode:
authorGravatar BanceDev 2026-02-16 16:31:54 -0500
committerGravatar BanceDev 2026-02-16 16:31:54 -0500
commitca90ebdfa8789654766c5d7969baa7afacd9ebd2 (patch)
tree9693e0c7a5af6713f4c5e39372dcf22d05844ec3 /common/sequencer/option.go
initial commitHEADmain
Diffstat (limited to 'common/sequencer/option.go')
-rw-r--r--common/sequencer/option.go21
1 files changed, 21 insertions, 0 deletions
diff --git a/common/sequencer/option.go b/common/sequencer/option.go
new file mode 100644
index 0000000..1b3f613
--- /dev/null
+++ b/common/sequencer/option.go
@@ -0,0 +1,21 @@
+package sequencer
+
+type Option func(*Sequencer)
+
+func WithIncomingSeq(incomingSeq uint32) Option {
+ return func(s *Sequencer) {
+ s.incomingSeq = incomingSeq
+ }
+}
+
+func WithOutgoingSeq(outgoingSeq uint32) Option {
+ return func(s *Sequencer) {
+ s.outgoingSeq = outgoingSeq
+ }
+}
+
+func WithPing(ping int16) Option {
+ return func(s *Sequencer) {
+ s.ping = ping
+ }
+}