Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
*pools.ResourcePool
}
DB is a wrapper over the connection pool.
func (*DB) DecrementCounter ¶
func (p *DB) DecrementCounter()
DecrementCounter decrements the counter by one.
func (*DB) IncrementCounter ¶
func (p *DB) IncrementCounter()
IncrementCounter increments the counter by one.
func (*DB) ReadCounter ¶
ReadCounter returns the current contents of the counter in the database.
type Datastore ¶
type Datastore interface { ReadCounter() int64 IncrementCounter() DecrementCounter() InitCounter() }
Datastore is an interface helper that allows mocking a test database.
type ResourceConn ¶
ResourceConn adapts a Redigo connection to a Vitess Resource.
func (ResourceConn) Close ¶
func (r ResourceConn) Close()
Close closes a connection owned by a Vitess Resource.
Click to show internal directories.
Click to hide internal directories.