Documentation ¶
Index ¶
Constants ¶
View Source
const IterationsNum = 10
Number of generation iterations
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gen ¶
type Gen struct {
// contains filtered or unexported fields
}
Gen model...
func (*Gen) GenerateRecords ¶
func (gen *Gen) GenerateRecords()
GenerateRecords generates certain amount of users, categories and messages instances
func (*Gen) GenerateRootCategory ¶
writeRootCategory writes a root category in the db
func (*Gen) WriteCategories ¶
WriteCategories starts a new transaction with the DB and writes categories there
func (*Gen) WriteMessages ¶
WriteMessages starts a new transaction with the DB and writes messages there
Click to show internal directories.
Click to hide internal directories.