diff options
| author | 2026-02-16 16:31:54 -0500 | |
|---|---|---|
| committer | 2026-02-16 16:31:54 -0500 | |
| commit | ca90ebdfa8789654766c5d7969baa7afacd9ebd2 (patch) | |
| tree | 9693e0c7a5af6713f4c5e39372dcf22d05844ec3 /common/sequencer/option.go | |
Diffstat (limited to '')
| -rw-r--r-- | common/sequencer/option.go | 21 |
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 + } +} |
