Documentation ¶
Index ¶
- func Serialize(doc *Document) ([]byte, error)
- type DDLWorkload
- type Document
- type DropCreateWriteWorkload
- type InsertOnlyWorkload
- type Queue
- type QueueDocuments
- type ReplaceOnlyWorkload
- type SmallConciseWorkload
- func (w *SmallConciseWorkload) Check(client driver.Driver) (bool, error)
- func (w *SmallConciseWorkload) Setup(client driver.Driver) error
- func (w *SmallConciseWorkload) Start(client driver.Driver) (int64, error)
- func (w *SmallConciseWorkload) Start1(client driver.Driver) (int64, error)
- func (w *SmallConciseWorkload) Type() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DDLWorkload ¶
func (*DDLWorkload) Type ¶
func (w *DDLWorkload) Type() string
type DropCreateWriteWorkload ¶
type DropCreateWriteWorkload struct { Threads int16 Database string Collections []string Schemas [][]byte Records int64 }
func (*DropCreateWriteWorkload) Check ¶
func (w *DropCreateWriteWorkload) Check(_ driver.Driver) (bool, error)
func (*DropCreateWriteWorkload) Setup ¶
func (w *DropCreateWriteWorkload) Setup(client driver.Driver) error
func (*DropCreateWriteWorkload) Start ¶
func (w *DropCreateWriteWorkload) Start(client driver.Driver) (int64, error)
func (*DropCreateWriteWorkload) Type ¶
func (w *DropCreateWriteWorkload) Type() string
type InsertOnlyWorkload ¶
type InsertOnlyWorkload struct { Threads int16 Records int64 Database string Collections []string Schemas [][]byte WorkloadData *Queue }
func (*InsertOnlyWorkload) Check ¶
func (w *InsertOnlyWorkload) Check(client driver.Driver) (bool, error)
func (*InsertOnlyWorkload) Start ¶
func (w *InsertOnlyWorkload) Start(client driver.Driver) (int64, error)
func (*InsertOnlyWorkload) Type ¶
func (w *InsertOnlyWorkload) Type() string
type QueueDocuments ¶
func NewQueueDocuments ¶
func NewQueueDocuments(collection string) *QueueDocuments
func (*QueueDocuments) Add ¶
func (q *QueueDocuments) Add(doc *Document)
type ReplaceOnlyWorkload ¶
type ReplaceOnlyWorkload struct { Threads int16 Records int64 Database string Collections []string Schemas [][]byte WorkloadData *Queue }
func (*ReplaceOnlyWorkload) Check ¶
func (w *ReplaceOnlyWorkload) Check(client driver.Driver) (bool, error)
func (*ReplaceOnlyWorkload) Start ¶
func (w *ReplaceOnlyWorkload) Start(client driver.Driver) (int64, error)
func (*ReplaceOnlyWorkload) Type ¶
func (w *ReplaceOnlyWorkload) Type() string
type SmallConciseWorkload ¶
type SmallConciseWorkload struct { Threads int16 Records int64 Database string Collections []string Schemas [][]byte WorkloadData *Queue }
func (*SmallConciseWorkload) Check ¶
func (w *SmallConciseWorkload) Check(client driver.Driver) (bool, error)
func (*SmallConciseWorkload) Setup ¶
func (w *SmallConciseWorkload) Setup(client driver.Driver) error
func (*SmallConciseWorkload) Start ¶
func (w *SmallConciseWorkload) Start(client driver.Driver) (int64, error)
func (*SmallConciseWorkload) Start1 ¶
func (w *SmallConciseWorkload) Start1(client driver.Driver) (int64, error)
func (*SmallConciseWorkload) Type ¶
func (w *SmallConciseWorkload) Type() string
Click to show internal directories.
Click to hide internal directories.