Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDB ¶
MockDB is a wrapper over the miniredis server.
func (*MockDB) DecrementCounter ¶
func (s *MockDB) DecrementCounter()
DecrementCounter decrements the counter by one.
func (*MockDB) IncrementCounter ¶
func (s *MockDB) IncrementCounter()
IncrementCounter increments the counter by one.
func (*MockDB) InitCounter ¶
func (s *MockDB) InitCounter()
InitCounter sets the `counter` key to zero.
func (*MockDB) ReadCounter ¶
ReadCounter returns the current contents of the counter in the database.
Click to show internal directories.
Click to hide internal directories.