diff options
Diffstat (limited to 'pkg/commands/session.go')
| -rw-r--r-- | pkg/commands/session.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/pkg/commands/session.go b/pkg/commands/session.go new file mode 100644 index 0000000..e7a39fe --- /dev/null +++ b/pkg/commands/session.go @@ -0,0 +1,18 @@ +package commands + +type ClientSession struct{ + Queue [][]string + InTransaction bool +} + +func NewClientSession() *ClientSession { + return &ClientSession{ + InTransaction: false, + Queue: make([][]string, 0), + } +} + +func (s *ClientSession) Reset() { + s.InTransaction = false + s.Queue = nil +}
\ No newline at end of file |
