Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectionCanBeDeleted ¶
checks if collection can be deleted by selected options
func SelectStrategy ¶
returns specified strategy
Types ¶
type GopherError ¶
type GopherError struct {
Message string
}
func (*GopherError) Error ¶
func (e *GopherError) Error() string
type Mongo ¶
type Mongo struct {
// contains filtered or unexported fields
}
Mongo type fields:
name - contains the DB name session - new connection to the db
func NewMongoCleaningGopher ¶
creates new cleaner for mongo driver
func (*Mongo) CleanWithTruncation ¶
func (m *Mongo) CleanWithTruncation()
Clean with Mongo adapter - truncation strategy
type Mysql ¶
type Mysql struct {
// contains filtered or unexported fields
}
Mysql type fields:
name - contains the DB name strategy - contains the selected strategy for cleaning the DB options - options for additional info - [except, only]
func NewMysqlCleaningGopher ¶
creates new cleaner for mysql driver
func (*Mysql) CleanWithStatment ¶
clean with specified strategy
type Redis ¶
Redis type fields:
name - contains the DB name strategy - contains the selected strategy for cleaning the DB options - options for additional info - [except, only]
func NewRedisCleaningGopher ¶
func (*Redis) CleanWithTruncation ¶
func (m *Redis) CleanWithTruncation()
Clean with Redis adapter - truncation strategy
Click to show internal directories.
Click to hide internal directories.